uiscrollview nie anuluje zawartości dotknie uisegmentedcontrol
Podklasowałem th UIScrollView i nadpisałem metodę touchesShouldCancelInContentView: w następujący sposób:
-(BOOL)touchesShouldCancelInContentView:(UIView *)view
{
if ([view isKindOfClass:[UIButton class]] || [view isKindOfClass:[UISegmentedControl class]]) {
return YES;
}
if ([view isKindOfClass:[UIControl class]]) {
return NO;
}
return YES;
}
Działa idealnie dla UIButton, ale nie działa dla UISegmentedControl. Każda pomoc byłaby doceniana