手机
当前位置:查字典教程网 >编程开发 >IOS开发 >在uiview 的tableView中点击cell进入跳转到另一个界面的实现方法
在uiview 的tableView中点击cell进入跳转到另一个界面的实现方法
摘要:1.先重写uiviewcontrol的方法-(UIViewController*)viewController{for(UIView*nex...

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进入跳转到另一个界面的实现方法,希望对大家有所帮助,如果大家有任何疑问请给我们留言,小编会及时回复大家的。在此也非常感谢大家对查字典教程网的支持!

【在uiview 的tableView中点击cell进入跳转到另一个界面的实现方法】相关文章:

iOS开发中Subview的事件响应以及获取subview的方法

iOS文字渐变色效果的实现方法

objective-c中生成随机数的方法

iOS简单加载一个网页的方法

详解iOS的UI开发中控制器的创建方法

iOS应用中UITableView左滑自定义选项及批量删除的实现

iOS中使用UItableviewcell实现团购和微博界面的示例

IOS多线程编程的3种实现方法

IOS应用内跳转系统设置相关界面的方法

总结IOS界面间跳转的几种方法

精品推荐
分类导航