TTThumbsViewControllerをサブクラス化して、アップロードプロセスを統合しました。その見返りに、削除プロセスも統合したいと思います。
私の状況:写真をクリックするとGestureRecognizerが追加されました:
UILongPressGestureRecognizer* recognizer = [[UILongPressGestureRecognizer alloc]
initWithTarget:self action:@selector(deleteImage:)];
[self.view addGestureRecognizer:recognizer];
..。
- (void)deleteImage:(UILongPressGestureRecognizer*)recognizer {
__block IMHRemotePhoto *photo = [self.dataSource
tableView:self.tableView
objectForRowAtIndexPath:[self.tableView
indexPathForRowAtPoint:gestureStartPoint]];
}
しかし、そのスニペットでは、行を識別するだけで、選択したオブジェクトは識別しません。TTThumbsViewControllerは、デフォルトで1行に最大4つの要素を含む場合があります。
これを行う方法はありますか?
よろしく、hijolan