My structure of views:
UITableView
UITableViewCell
UIScrollView
CustomView
UIButton
The problem is UIButton doesn\'t wo
Create a subclass of UIScrollview with
- (BOOL)touchesShouldCancelInContentView:(UIView *)view {
return NO;
}
If you are not getting that message, set:
scrollView.delaysContentTouches = NO;
The problem is because of the way touchesShouldCancelInContentView behaves by default, it returns NO only if the subview is an UIControl, but your button is hidden inside the CustomView which isn't.