UIScrollView阻止Touch消息的传递,解决办法是subclass UIScrollView,重写touch方法,让touch消息传入superview,即是UITableViewCell中就可以解决了。
- (void)touchesBegan:(NSSet )touches withEvent:(UIEvent )event { [super touchesBegan:touches withEvent:event]; [self.nextResponder touchesBegan:touches withEvent:event]; }
- (void)touchesEnded:(NSSet )touches withEvent:(UIEvent )event { [super touchesEnded:touches withEvent:event]; [self.nextResponder touchesEnded:touches withEvent:event]; }