What is the program flow in case navigation based application developed for iphone in objective C?
I want to know the sequence in which default or predef开发者_JAVA百科ined methods ( such as viewDidLoad applicationDidFinishLaunching etc) are called in program execution in a navigation based application.
See a life cycle for a view controller
- init
- loadView (if view wasn't specified with initWithNibName)
- viewDidLoad
- viewWillAppear
- viewDidAppear
- //here come some actions
- viewWillDisappear
- viewDidDisappear
- viewDidUnload (in case of memory warnings)
Everything else depends on the sequence and methods (IB or through code) of instantiating of root view controllers.
精彩评论