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