0

In the iPad view lifecycle, what does the "window" do? Can you have more than one window for an App?

MikeN
  • 45,039
  • 49
  • 151
  • 227
  • You can have more than one UIWindow. For example, the keyboard is on a UIWindow. Also, I agree iPads are sexy, but that tag really doesn't belong to this question. –  Mar 01 '11 at 20:43

1 Answers1

1

A window manages a view hierarchy and controls things such as events and first responder status. You will have multiple windows if you use the keyboard (as pointed out by Radek in the comments), UIAlerts, or if you support TV out. You could use multiple full screen windows without TV out and switch between them, just like switching the root view controller of the window, but I don't think this is done very often.

ughoavgfhw
  • 39,734
  • 6
  • 101
  • 123
  • How can you switch between multiple full screen windows in an App? Asked that Q here: http://stackoverflow.com/questions/5161016/how-do-you-launch-a-second-mainwindow-xib-in-an-ipad-application – MikeN Mar 02 '11 at 02:54