UIScrollview limit swipe area
I am trying to limit the swipe area of the UIScrollview, but i amnot able to do that. I would like to set the swipe area only to the top of the UIScrollview, but i would like to set all the content visible. Update: - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if ([touches count] > 0) { UITouch *tempTouch = [touches anyObject]; CGPoint touchLocation = [tempTouch locationInView:self.categoryScrollView]; if (touchLocation.y > 280.0) { NSLog(@"enabled"); self.categoryScrollView.scrollEnabled = YES; } } [self.categoryScrollView touchesBegan:touches withEvent:event]; } - (void