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] ;
网友评论