- (UIViewController *)viewController { if ([self.nextResponder isKindOfClass:UIViewController.class]) { return (UIViewController *)self.nextResponder; }else { return nil; } }
- (UIViewController *)viewController { if ([self.nextResponder isKindOfClass:UIViewController.class]) { return (UIViewController *)self.nextResponder; }else { return nil; } }