Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/95.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 是否使每个UITableView单元格打开新视图?_Iphone_Ios_Xcode_Uitableview - Fatal编程技术网

Iphone 是否使每个UITableView单元格打开新视图?

Iphone 是否使每个UITableView单元格打开新视图?,iphone,ios,xcode,uitableview,Iphone,Ios,Xcode,Uitableview,如何使UITableView中的每个单元格打开新视图或.xib?一个简单的教程会很有帮助。请参阅以下链接 在这里写下你的导航代码 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { } 希望对您有所帮助 -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath

如何使UITableView中的每个单元格打开新视图或.xib?一个简单的教程会很有帮助。

请参阅以下链接

在这里写下你的导航代码

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
}
希望对您有所帮助

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {
       if(indexPath.row==0)
       {
              //Open New View select on 1st row
       }
       if(indexPath.row==1)
       {
               //Open New View select on 2st row
       }

 }

有点不完整,但通过使用教程和其他网站,我设法找到了答案。比其他网站帮助更多,但仍然不完整。