iOS, ARC, Storyboards and UIViewController Trace

Dec 6, 2011

Finally had to write a trace UIViewController so I could see the exact sequence of calls under ARC and in a Storyboard.

ViewController is the controller for the main page, which segues to a GameController which segues to an InfoController, both as "Modal". Ran the two segues twice. Here is the trace.

Note that viewDidUnload is ONLY called during low memory conditions and thus does not appear in this trace.

initWithCoder in ViewController
awakeFromNib in ViewController
viewDidLoad in ViewController
viewWillAppear in ViewController
viewWillLayoutSubviews in ViewController
viewDidLayoutSubviews in ViewController
viewDidAppear in ViewController
  initWithCoder in GameController
  awakeFromNib in GameController
prepareForSegue in ViewController
  viewDidLoad in GameController
viewWillDisappear in ViewController
  viewWillAppear in GameController
  viewWillLayoutSubviews in GameController
  viewDidLayoutSubviews in GameController
  viewDidAppear in GameController
viewDidDisappear in ViewController
    initWithCoder in InfoController
    awakeFromNib in InfoController
  prepareForSegue in GameController
    viewDidLoad in InfoController
  viewWillDisappear in GameController
    viewWillAppear in InfoController
    viewWillLayoutSubviews in InfoController
    viewDidLayoutSubviews in InfoController
    viewDidAppear in InfoController
  viewDidDisappear in GameController
    viewWillDisappear in InfoController
  viewWillAppear in GameController
  viewDidAppear in GameController
    viewDidDisappear in InfoController
    dealloc in InfoController
  viewWillDisappear in GameController
viewWillAppear in ViewController
viewDidAppear in ViewController
  viewDidDisappear in GameController
  dealloc in GameController
  initWithCoder in GameController
  awakeFromNib in GameController
prepareForSegue in ViewController
  viewDidLoad in GameController
viewWillDisappear in ViewController
  viewWillAppear in GameController
  viewWillLayoutSubviews in GameController
  viewDidLayoutSubviews in GameController
  viewDidAppear in GameController
viewDidDisappear in ViewController
    initWithCoder in InfoController
    awakeFromNib in InfoController
  prepareForSegue in GameController
    viewDidLoad in InfoController
  viewWillDisappear in GameController
    viewWillAppear in InfoController
    viewWillLayoutSubviews in InfoController
    viewDidLayoutSubviews in InfoController
    viewDidAppear in InfoController
  viewDidDisappear in GameController
    viewWillDisappear in InfoController
  viewWillAppear in GameController
  viewDidAppear in GameController
    viewDidDisappear in InfoController
    dealloc in InfoController
  viewWillDisappear in GameController
viewWillAppear in ViewController
viewDidAppear in ViewController
  viewDidDisappear in GameController
  dealloc in GameController