addChildViewController alternative for iOS 4.3

前端 未结 3 641
旧时难觅i
旧时难觅i 2021-01-14 17:33

I would like to use the same functionality of addChildViewController, but for the version 4.3 (addChildViewController is only available in version 5). Thanks in advance.

3条回答
  •  时光说笑
    2021-01-14 18:19

    I assume the reason you want to do this is for ipad application, as Apple state that a single view controller should "generally" (and before ipad existed they stated "always") control a whole screen full of views.

    This really only changed with the extra screen real estate of the ipad when Apple made their own container view controller (splitViewController) which ultimately led to Apple allowing us to create our own container view controllers in ios5.

    If your app is an iphone app then I (and Apple) would seriously question your need for view controller containment.

提交回复
热议问题