标签:
- (UIViewController *)findViewController:(UIView *)sourceView { id target=sourceView; while (target) { target = ((UIResponder *)target).nextResponder; if ([target isKindOfClass:[UIViewController class]]) { break; } } return target; }
iOS - 通过view查找所在(viewController)
标签:
原文地址:http://www.cnblogs.com/qq744890760/p/5072184.html