在tableViewCell的点击事件中处理界面跳转问题

    UIViewController *controller;

    UIView *view = self.view;

    while (1)

    {

        controller = (UIViewController *)view.nextResponder;

        if (![controller isKindOfClass:[UIViewControllerclass]] || controller.navigationController == nil)

            view = view.superview;

        else

            break;

    }

原文地址:https://www.cnblogs.com/hellocby/p/3557549.html