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进入跳转到另一个界面的实现方法,希望对大家有所帮助
如对本文有疑问, 点击进行留言回复!!
Codeforces Round #657 (Div. 2) C题
hdu2222 Keywords Search(ac自动机模板-kuangbin)
IOS开发控件视图day08:监听文本框状态设置按钮状态不可点击且变灰
网友评论