How many windows does an iPhone application typically have?
Just want to know how many windows do开发者_Python百科es an iPhone application typically have?
Thanks Saurabh
One, typically.
Though it depends on your app and what you need to do that may involve windows. However, the iPhone only supports displaying one window at a time.
iOS uses one UIWindow instance for each visible screen. In most cases, this means one UIWindow for the screen on the device.
However, with the support for external displays that was added in iPhone OS 3.2, you now may need to have one UIWindow for each display you are providing content for. Each UIWindow would then be attached to a different UIScreen instance. For example, an iPad connected to an external monitor would have a UIWindow for its main touchscreen display and a different UIWindow for the connected monitor. Each could be displaying different content (like how Keynote can have presenter notes on the touchscreen and the presentation itself on the external display).
精彩评论