- (UIViewController*)findViewController
{
idtarget =self;
while(target) {
target = ((UIResponder*)target).nextResponder;
if ([target isKindOfClass:[UIViewController class]]) {
break;
}
}
return target;
}
- (UIViewController*)findViewController
{
idtarget =self;
while(target) {
target = ((UIResponder*)target).nextResponder;
if ([target isKindOfClass:[UIViewController class]]) {
break;
}
}
return target;
}
本文标题:在cell/view中找到上层viewController方法
本文链接:https://www.haomeiwen.com/subject/sflpkftx.html
网友评论