ios - UIView Menu Over UIScrollView -


OK this should be a simple task, but it's sending me crazy.

All I am trying to get is a UIScrollView to display behind the screen and below the stable transparent toolbar to get to the receiving. The structure is currently set so that both scrollview (subclass UIScrollView) and overlays (subtypes of UIView) are the subviews of the RootViewController

  scrollview = [[EMDrawScrollView alloc] initWithFrame. CGRectMake (0, 0, winSize.width, winSize.height)]; ScrollView.userInteractionEnabled = Yes; [Self.view addSubview: scrollView]; Overlay = [[EMDrawOverlayView alloc] initWithFrame: CGRectMake (0, 0, winSize.width, winSize.height)]; Overlay.userInteractionEnabled = NO; [Self.view addSubview: overlay];  

The issue is that if I enable the overlay. User Interaction enabled, all go to touch layer and can not go to scrollview. But if I work with the scrollview to turn off the user interaction properly, but I can not interact with the overlay

By storing it with RootViewController I am collecting these and handling them as much as right Regarding sending the object:.

  - (zero) touchesBegan: (NSSet *) touching withEvent: (UIEvent *) event {UITouch * t1 = [[[event allTouches] allObjects] objectAtIndex: 0]; CGPoint people = [T1 location inview: self Weave]; If (CGRC CentsPoint (overlay right toolbar. Fram, public)) {overlayTouched = yes; [Overlay touch touches: missed with event: incident]; } And {overlay touched = no; [Scrollview touches the brinze: incident touching: incident]; }}  

I think the toolbars will be set up as a fine UIViews and they will be seen to add the controller as subviews so that the overlays do not take up the entire screen But I would like to save it if there is any other way.

OK .... It does not seem to be a simple answer to this question, To resolve the issue, this question has been solved as I did in the question and saw each overlide adding to the form of UIView, in which the frame size of only one part of its super view size was.

It worked well in the end because I touchesBegan to see what it was in and touchesMoved and touchesEnd touches on the basis of the scene which gave me a lot of control over user interaction Was able to find out.


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -