I have a very complex view hierarchy . Having a Master – Detail View Controller with UINavigation Controller in each section and each view controllers have their own UViews inside them. I have a overlay view which supports a buffer or a holder for Drag and Drop event . I want this view at the top of all my subviews irrespective of Hierarchy at any given point of time.
Is there a way so that I can place a UIView always on top.
Something like
overlayView.alwaysOntop = YES;
I can manually use function like , bring subview to front , insert sub view above , below etc , but that makes my application very complex.
Have you tried adding the view as a sub view of the navigation view
As long as you don’t add other subviews to your navigation controller view it should stay at the top of the hierarchy. You may have to move its position slightly too.