- (UIViewController*)findViewController
{
id target = self;
while(target)
{
target = ((UIResponder*)target).nextResponder;
if ([target isKindOfClass:[UIViewController class]])
{
break;
}
} return target;
}
网友评论