IOS响应事件传递nextResponder

官方解释

创新互联建站是一家集网站建设,高州企业网站建设,高州品牌网站建设,网站定制,高州网站建设报价,网络营销,网络优化,高州网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。

UIView implements this method by returning the UIViewController object that manages it (if it has one) or its superview (if it doesn’t); UIViewController implements the method by returning its view’s superview; UIWindow returns the application object, and UIApplication returns nil.

id next = [self nextResponder];
while(![next isKindOfClass:[ViewController class]]) {
    next = [next nextResponder];
}
if ([next isKindOfClass:[ViewController class]]) {
    controller = (ViewController *)next;
}

名称栏目:IOS响应事件传递nextResponder
链接URL:http://myzitong.com/article/jjdodo.html