您的位置:首页 > 移动开发 > IOS开发

响应事件传递nextResponder

2016-06-28 10:35 239 查看
由于项目比较大,页面多而且复杂,有时就需要从当前的responder通过nextResponder(一个甚至多个)找到深层次的VeiwController。

官方解释 

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. 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios开发