Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/99.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
IndexPath返回nil,仅在iOS 13.5.1上针对indexPathForRowAtPoint返回nil_Ios_Objective C - Fatal编程技术网

IndexPath返回nil,仅在iOS 13.5.1上针对indexPathForRowAtPoint返回nil

IndexPath返回nil,仅在iOS 13.5.1上针对indexPathForRowAtPoint返回nil,ios,objective-c,Ios,Objective C,IndexPath返回nil,仅在iOS 13.5.1上,其他iOS版本针对特定按钮位置获得正确的IndexPath。 是否有人面临相同的问题,或有任何解决方案。 谢谢 当它发生时,buttonPosition和tableView.frame的值是多少?buttonPosition=(x=239,y=1274.6698577072093)相同的位置适用于其他版本的iOS,比iOS 13.5.1旧。tableViewFrame=origin=(x=0,y=0),size=(width=414,he

IndexPath返回nil,仅在iOS 13.5.1上,其他iOS版本针对特定按钮位置获得正确的IndexPath。 是否有人面临相同的问题,或有任何解决方案。 谢谢


当它发生时,
buttonPosition
tableView.frame
的值是多少?buttonPosition=(x=239,y=1274.6698577072093)相同的位置适用于其他版本的iOS,比iOS 13.5.1旧。tableViewFrame=origin=(x=0,y=0),size=(width=414,height=611)当它发生时,
buttonPosition
tableView.frame
?buttonPosition=(x=239,y=1274.6698577072093)的值是多少?同样的位置适用于其他版本的iOS,比iOS 13.5.1旧。tableViewFrame=原点=(x=0,y=0),大小=(宽度=414,高度=611)
- (void)deleteTapped:(id)sender {
CGPoint buttonPosition = [sender convertPoint:CGPointZero toView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:buttonPosition];
}