开发者

How many windows does an iPhone application typically have?

开发者 https://www.devze.com 2023-01-14 13:49 出处:网络
Just want to know how many windows do开发者_Python百科es an iPhone application typically have? Thanks

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消