美文网首页
cell上寻找跟视图...

cell上寻找跟视图...

作者: Ios腾 | 来源:发表于2018-10-12 16:31 被阅读0次

cell上寻找跟视图...

- (UIViewController*)viewController {

    UIResponder *next = self.nextResponder;

    do{

        //判断响应者是否为视图控制器

        if([nextisKindOfClass:[UIViewControllerclass]]) {

            return(UIViewController*)next;

        }

        next = next.nextResponder;

    }while(next !=nil);

    return nil;

}

shophouseViewController * shophouseVC = [[shophouseViewController alloc]init] ;

shophouseVC.hidesBottomBarWhenPushed =YES;

[[selfviewController].navigationController pushViewController:shophouseVC animated:YES] ;

相关文章

网友评论

      本文标题:cell上寻找跟视图...

      本文链接:https://www.haomeiwen.com/subject/sxygaftx.html