viewDidLoad in iOS 6 called once?

后端 未结 1 470
生来不讨喜
生来不讨喜 2021-01-12 01:28

Head\'s up: This question is related to the recent deprecation of viewDidUnload. I have seen \"great\" and logical answers around this topic, but apparently

相关标签:
1条回答
  • 2021-01-12 01:58

    As of iOS 6, your UIViewController subclass will only receive viewDidLoad once, unless you write code to set its view back to nil.

    However, I wouldn't rely on that behavior in a complex system-provided view controller like UIImagePickerController. Perhaps it sets its own view back to nil.

    0 讨论(0)
提交回复
热议问题