Nitesh
Nitesh

Reputation: 470

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 predefined methods ( such as viewDidLoad applicationDidFinishLaunching etc) are called in program execution in a navigation based application.

Upvotes: 1

Views: 164

Answers (1)

knuku
knuku

Reputation: 6102

See a life cycle for a view controller

  1. init
  2. loadView (if view wasn't specified with initWithNibName)
  3. viewDidLoad
  4. viewWillAppear
  5. viewDidAppear
  6. //here come some actions
  7. viewWillDisappear
  8. viewDidDisappear
  9. viewDidUnload (in case of memory warnings)

Everything else depends on the sequence and methods (IB or through code) of instantiating of root view controllers.

Upvotes: 1

Related Questions