self.window.rootViewController vs window addSubview

后端 未结 5 633
一向
一向 2020-12-05 04:17

I\'ve noticed a lot of examples for iPhone apps in the Application Delegate

- (void)applicationDidFinishLaunching:(UIApplication *)application

h

5条回答
  •  [愿得一人]
    2020-12-05 04:29

    The UIWindow rootViewController property is new with iOS4.

    The older technique was to use addSubview.

    The new, recommended technique is to set rootViewController.

提交回复
热议问题