Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/44.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 在选择UITableViewController的任意行时,如何执行特定操作?_Iphone_Objective C_Uitableview - Fatal编程技术网

Iphone 在选择UITableViewController的任意行时,如何执行特定操作?

Iphone 在选择UITableViewController的任意行时,如何执行特定操作?,iphone,objective-c,uitableview,Iphone,Objective C,Uitableview,我有一个表和它上面的一些项目,现在我想在我选择特定行时调用一个方法,就像某种带有索引的警报消息,在选中 任何解决方案???您所需要的就是实现此方法: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; 有关更多详细信息,您只需在Xcode的开发人员文档中搜索即可。您只需实现以下方法: - (void)tableView:(UITableView *)tableV

我有一个表和它上面的一些项目,现在我想在我选择特定行时调用一个方法,就像某种带有索引的警报消息,在选中


任何解决方案???

您所需要的就是实现此方法:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

有关更多详细信息,您只需在Xcode的开发人员文档中搜索即可。

您只需实现以下方法:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

有关更多详细信息,您可以在Xcode的开发人员文档中进行搜索。

如何查看选择了哪个索引,如我想在0行打印0,在1行打印1等…如何查看选择了哪个索引,如我想在0行打印0,在1行打印1等。。。