Looking to understand the iOS UIViewController lifecycle

前端 未结 11 2093
情深已故
情深已故 2020-11-21 22:33

Could you explain me the correct manner to manage the UIViewController lifecycle?

In particular, I would like to know how to use Initialize

11条回答
  •  滥情空心
    2020-11-21 23:15

    UPDATE: ViewDidUnload was deprecated in iOS 6, so updated the answer accordingly.

    The UIViewController lifecycle is diagrammed here:

    A view controller's lifecycle, diagrammed

    The advantage of using Xamarin Native/Mono Touch, is that it uses the native APIs, and so it follows the same ViewController lifecycle as you would find in Apple's Documentation.

提交回复
热议问题