![]() and the content over them is scrollable using the mentioned scrollview. the view behind it has some images that the user should be able to tap on. ![]() the scroll view has content - text and images, used to display info. 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. 18 i have a transparent UIScrollView on top of another view. In the Controller, I set the self.view as: self.view subclass of UIScrollview Before iOS 5, when there are touches move on the scrollview, the view controller's touch functions can receive all touch begin/move/end/cancel calls. In the UIScrollView, the taps also work perfectly. Also I have a view controller in which I override all 4 Touches functions too. 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. The regular UIView uses a subclass of UIPanGestureRecognizer to track vertical pans ( Subclass found here). 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 |