Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/98.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
如何在给定NSIndexPath*iOS的UITableViewCell上获取句柄_Ios_Uitableview_Handle_Nsindexpath - Fatal编程技术网

如何在给定NSIndexPath*iOS的UITableViewCell上获取句柄

如何在给定NSIndexPath*iOS的UITableViewCell上获取句柄,ios,uitableview,handle,nsindexpath,Ios,Uitableview,Handle,Nsindexpath,我有nsindepath*类型的indepath,它是对tableView的引用,我想用它们来获取对应单元格的句柄。我是如何做到这一点的 UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; 但请注意,如果相应的行此时不可见(或者indexPath超出表的范围),则该方法返回nil

我有nsindepath*类型的indepath,它是对tableView的引用,我想用它们来获取对应单元格的句柄。我是如何做到这一点的

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
但请注意,如果相应的行此时不可见(或者indexPath超出表的范围),则该方法返回nil