Hi people,
how do you add an overlay view that goes over everything. eg over a tab bar controller, and a navigation controller?
thanks
Hi people,
how do you add an overlay view that goes over everything. eg over a tab bar controller, and a navigation controller?
thanks
Find the "top" view in your stack, and add a subview. eg
[self.tabBarController.view addSubview:myView];
The hardest part is finding the topmost view; with a tab bar, it will be its own view.
Add a window. That's what the popup keyboard and UIAlertView do, you can see that in this view dump.
Use a modal view controller. Have a read of this guide:
Presenting the view controller itself is easy:
UINavigationController *navigationController = [[UINavigationController alloc]
initWithRootViewController:addController];
[self presentModalViewController:navigationController animated:YES];