I recently wondered that an iOS application has only one UIWindow . It doesn't seem like a problem to create another UIWindow and place it on the screen.
My question is fuzzy, but I'm interested in:
- What can I achieve with a second
UIWindow that cannot be done in other ways? - What could be wrong when using multiple instances of
UIWindow ? - I have seen that people use 2nd
UIWindow to display popover, like representations on iPhone. Is this a good way to do this? What for? Why not? - Are there any other examples in which it makes sense to have another
UIWindow ?
This is not something that I am missing out on. I never felt the need to create another instance of UIWindow , but perhaps this will allow me to do amazing things that I donโt know about !:-)
I hope this helps me solve this problem: I need to add a โcoverโ over what is currently displayed. It should also work if there is already one or more modal controllers. If I add a UIView to the root controller view, the modal controllers will sit on top, just like the popover controllers. If I present the view of the cover in a modular way, and there is already a modal controller, only part of the screen is covered.
objective-c cocoa-touch uikit uiwindow
Krumelur Nov 22 '11 at 19:11 2011-11-22 19:11
source share