Complete list of Lifecycle functions of ViewController from Starting To End of that Life without using the NIB and With using NIB?

后端 未结 1 1981
北荒
北荒 2020-12-12 06:45

I want complete list of lifecycle functions of view controller with correct sequence.Please any genius.

Please specify with Exact sequence number an

相关标签:
1条回答
  • 2020-12-12 07:29

    To figure out in what order they are called you could use the debugger and a couple of breakpoints or simply put a NSLog(@"viewDidLoad was called"); call in each method.

    Experienced programmers would use NSLog(@"%s", __PRETTY_FUNCTION__); because it automatically prints the method name and can be copied&pasted faster.

    The View Controller Programming Guide can be handy too. It explains all that in detail.

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