标签:
1.先重写uiviewcontrol的方法
- (UIViewController *)viewController {
for (UIView* next = [self superview]; next; next = next.superview) {
UIResponder *nextResponder = [next nextResponder];
if ([nextResponder isKindOfClass:[UIViewController class]]) {
return (UIViewController *)nextResponder;
}
}
return nil;
}
2.接下来是点击cell的方法
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
qunzuDetailViewController *qc=[[qunzuDetailViewController alloc]initWithNibName:@"qunzuDetailViewController" bundle:[NSBundle mainBundle]];
[[self viewController]presentViewController:qc animated:YES completion:nil];
}
在uiview里面的tableView中,点击cell进入跳转到另一个界面的方法
标签:
原文地址:http://www.cnblogs.com/Root-zpy/p/5935758.html