开发者

Why not allocate the UIWindow object in the UIViewController subclass?

开发者 https://www.devze.com 2023-01-14 16:02 出处:网络
Suppose the application will only use a single-purpose view controller.Is there anything inherently bad with allocating th开发者_运维知识库e required UIWindow object as a member of the view controller

Suppose the application will only use a single-purpose view controller. Is there anything inherently bad with allocating th开发者_运维知识库e required UIWindow object as a member of the view controller subclass?

The programming guide does not provide any examples built this way, although they also don't seem to emphasize whether that's truly allowed or not.


I was asking the same question and found yours. After a look around, I found that going back to basics was the correct thing to do, so

http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/Introduction/Introduction.html

0

精彩评论

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