【发布时间】:2012-01-16 08:17:12
【问题描述】:
我将 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]];
}
但是使用该 sn-p 我只能识别行而不是我选择的对象 TTThumbsViewController 默认情况下可能在一行中最多有 4 个元素。
任何想法如何做到这一点?
最好的问候,hijolan
【问题讨论】:
标签: objective-c three20 uigesturerecognizer ttthumbsviewcontroller