for (UIView* next = [self superview]; next; next = next.superview)
{
UIResponder* nextResponder = [next nextResponder];
if ([nextResponder isKindOfClass:[MyViewController class]])
{
weakSelf.myVC = (MyViewController *)nextResponder;//MyViewController就是你要找的那个vc
break;
}
}