标签:
- (UIViewController *)ViewController
{
id nextResponder = [self nextResponder];
while (nextResponder != nil) {
if ([nextResponder isKindOfClass:[UIViewController class]]) {
UIViewController *vc = (UIViewController *)nextResponder;
return vc;
}
nextResponder = [nextResponder nextResponder];
}
return nil;
}
标签:
原文地址:http://www.cnblogs.com/fantasy3588/p/5776217.html