I want to know the sequence in which default or predefined methods ( such as viewDidLoad applicationDidFinishLaunching etc) are called in program execution in a navigation based application.
views:
17answers:
1
+1
Q:
What is the program flow in case navigation based application developed for iphone in objective C?
A:
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
Everything else depends on the sequence and methods (IB or through code) of instantiating of root view controllers.
NR4TR
2010-09-26 09:07:38
where in this sequence, applicationDidFinishLaunching or applicationDidFinishLaunchingWithOptions are executed? Also what will happen if I implement both the methods?
Nitesh
2010-09-27 17:27:41