UITapGestureRecognizer
私は my にa を追加しましたUITableView
が、ハンドラー (以下) は に「null」を与えるだけですindexPath
。
- (void)photoTapped:(UIGestureRecognizer *)gestureRecognizer {
if (gestureRecognizer.state == UIGestureRecognizerStateEnded) {
CGPoint tapLocation = [gestureRecognizer locationInView:self.itemsTableView];
NSIndexPath *tappedIndexPath = [self.itemsTableView indexPathForRowAtPoint:tapLocation];
//...
}
}
理由がわかりません。