I have an app with a tabbar controller, in one of the tabs I have a navigation controller. At one point stepping through the navigation controller a tableviewcontroller is loaded.
I create a UIView and stick controls on there, uipicker, buttons, other. I want this view to be on top of everything else, including the tabs down the bottom.
In a few windows doing this worked fine:
I felt a bit dirty after but it works.
I've yet another page with a very similar setup and this method doesn't work at all. In order to see the controls at all I have to go all the way down to
This means that my controls are above the tableview, so I can interact with them but they are under the tab bar.
I fear I'm implementing what would be best considered a hack though. Surely there's a *standard*, approved, not frowned upon, method of sticking a UIView on top of everything else. (ActionSheet won't do it here.)
I create a UIView and stick controls on there, uipicker, buttons, other. I want this view to be on top of everything else, including the tabs down the bottom.
In a few windows doing this worked fine:
Code:
[self.view.superview.superview.superview.superview.superview.superview.superview addSubview:controlsView]
I've yet another page with a very similar setup and this method doesn't work at all. In order to see the controls at all I have to go all the way down to
Code:
[self.view.superview addSubview:controlsView];
I fear I'm implementing what would be best considered a hack though. Surely there's a *standard*, approved, not frowned upon, method of sticking a UIView on top of everything else. (ActionSheet won't do it here.)