文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>How does UIView nextResponder know what the UIViewController is?

How does UIView nextResponder know what the UIViewController is?

时间:2011-04-17  来源:konggang

http://stackoverflow.com/questions/1587052/how-does-uiview-nextresponder-know-what-the-uiviewcontroller-is

找到一篇帖子讨论这个,但没有定论,应该是一个private api做的。

通过xcode的调试器,的确发现viewcontroller的view的确有一个_viewDelegate指针,它的值的确是它的viewcontroller的地址。

- (void)loadView {

NSLog(@"in loadview");

[self initWithNibName:@"rootView" bundle:nil];

[super loadView];

=====》在这里下断点,当super的loadview执行了以后,_viewDelegate就马上变成了self的值,说明这个值肯定是loadview里面做的

}

相关阅读 更多 +
排行榜 更多 +
吹风机射击 v1.0 安卓版

吹风机射击 v1.0 安卓版

飞行射击 下载
吹风机射击 v1.0 安卓版

吹风机射击 v1.0 安卓版

飞行射击 下载
吹风机射击 v1.0 安卓版

吹风机射击 v1.0 安卓版

飞行射击 下载