2
imgView是作为子视图添加到自定义UITableViewCell类的UIImageView。点击图像时不会调用该动作。如何将UIGestureRecognizer添加到UITableViewCell子视图?
[imgView addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(openMedia:)]];
:P这是一个容易犯的错误。感谢提示泄漏...忘了autorelease – 2010-07-30 16:58:06
谢谢,这正是我的问题 – ribeto 2011-10-17 22:28:04