标签:控制器
navigation 同理:
- (UIViewController*)viewController {
for (UIView* next = [self superview]; next; next = next.superview) {
UIResponder* nextResponder = [next nextResponder];
if ([nextResponder isKindOfClass:[UIViewController class]]) {
return (UIViewController*)nextResponder;
}
}
return nil;
}
标签:控制器
原文地址:http://qccccc.blog.51cto.com/6004423/1565711