UILongPress Drag into a UIView within a ScrollView - ios

I have a scrollView called sidebar. When I drag my finger on the screen close to the edge of my phone the sidebar pops op. Within the sidebar are UIViews that are subviews of sidebar. Additionally, each view is associated with a viewController. So each view is a subview and the corresponding controller is a childViewController of the subview. How do I recognize when my UILongPress has entered one of the views in my scrollView

Related

Passing touches to Another Sibling UIView

As pictured below, I have a subview with a tap gesture attached to it.
When it's tapped, a popup view with its own view controller would be presented in the superview. At this time, the subview and the new popup view would be siblings inside of the superview. Popup view will have its own table view.
How do I pass the touch that is already down on the subview to the new popup view? Is this possible?
This behaviour could be seen on the new iOS context menus. The touch down that is used to envoke the popup menu could be use to select the choices on the popup menu.

How to tap a view that's underneath another view with voiceover

I have a UICollectionView with a contentInset at the top.
In the contentInset area, is the Top View. The top view is physically behind the UICV, with hit testing that passes the touches through to the TopView. ie: Touches in the TopView area pass through the UICV and are recognized by the TopView.
However the when tapping in the TopView with the accessibility inspector (or in VoiceOver mode on device), it selects the UICollectionView
Is there a way to make VoiceOver select the TopView in my example?

Rounded button above the UISCROLLVIEW

I have been working in a project which has a uiscroll view where the uiscroll view size is set programatically with height 225 and width is self. I have created two uiimageView where it displays two images and I have animated it by moving using a page view controller. Finally the image moves atomically like a slide show with page view controller. I have removed the navigation controller do I need to keep a back button for navigation when I place a unbutton above uiscrollview it was stating like scrollview ambitious scrolling content. I need to place a rounded back button above scroll view. I have attached the image of my storyboard. When I tried to place a button it is not visible in stimulator header scroll view is the UISCROLLVIEW where the animated image is placed

UIViewController transition from left to right beneath another UIViewControler

I have a container UIViewController with a child that acts as a menu. This loads the other child UIViewController. I would like the other UIViewControllers to animate in and out behind the menu which is semi-transparent. I have only been able to make it work when the other children are above the menu (shorter than the entire screen so menu has room on the bottom) but have not achieved a sliding effect behind the menu. Is this effect possible?
Assuming you are adding menuController view and new viewController view's as subViews to containerViewController view.
First add that new viewcontroller view as child to containerView's view.
Now that view will be on top of menu's view.
Now bring the menu view to top by
[containerView bringSubViewToFront:menuView];
Above instruction makes menu view to be on top of sliding viewController's view.Now do the sliding animation on new viewController's view.

How do I bring the subview over the scroll view on iOS?

In iOS development, I want to add a subview in a viewbased application. I am having scrollview above that am having views containing labels and I used Interface Builder to design these views.
How do I bring the subview over the scroll view?
The way I do do this in IB is set the View Mode in the document window to Outline View (2nd button). Then I drag the view from the library on top of the scroll view and it will be inserted as a subview of the scrollview.
If you get a disclosure triangle next to your scrollview it will have had the new view inserted as a subview.
If you mean in the xib, drag the scroll view in first then drag your other subviews onto the scroll view.
If you mean programmatically, this should work:
[scrollView addSubview: mySubview];

Resources