AppDelegate-UIApplication-UIWindow-UIWindow.rootViewCOntroller-UIViewCOntroller.view-view.subviews
nextResponder 可以获取到UIView所在UIViewController
- ( UIViewController *)vc{
UIResponder *nextVC= self.nextResponder;
while([nextVC isKindOfClass:UIViewController.class] == NO]{
nextVC = nextVC.nextResponder;
}
return [ nextVC isKindOfClass:UIViewController.class ]? (UIViewController *)nextVC : nil;
}
1687

被折叠的 条评论
为什么被折叠?



