![]() ![]() The scroll view scrolls about three points, then stops (as I continue with the horizontal pan.) If I let go with a velocity, the scroll view then picks up that velocity and finishes scrolling. In the UIScrollView, the taps also work perfectly. The overlay view, the vertical pan works perfectly. (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event In the overlay view, I override the touch event methods to pass them to the UIScrollView. ![]() You would like the picker view to respond immediately and thus you will have to set delaysContentTouches to NO. This works, but it has an unpleasant side effect. When user is tapping on the screen, long pressing on the screen or moving finger horizontally, then I'm able to capture touches, but when user is moving finger vertically and activating vertical scrolling at the same time, then I'm not able to capture touches. (BOOL)touchesShouldCancelInContentView: (UIView )view and simply not allow the UIScrollView to cancel touches inside the picker view. The regular UIView uses a subclass of UIPanGestureRecognizer to track vertical pans ( Subclass found here). Unfortunately, I encountered issues with the UIScrollView component. ![]() ![]() I need to transfer all pans and taps to the scroll view (which only scrolls horizontally). I have a UIScrollView under a transparant UIView. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |