Wednesday, January 28, 2015

View's life cycle

Creation
1a -> initWithCoder for initializing view via Storyboard
1b -> initWithNibName for initializing view via Nib file
1c -> init if we do not use none of the above 2 methods and use simple View init method to initialize View.
2   -> loadView
3   -> viewDidLoad
4   -> viewWillAppear
5   -> viewWillLayoutSubviews
6   -> viewDidLayoutSubviews
7   -> viewDidAppear
Destruction
1   -> viewWillDisappear
2   -> viewDidDisappear
3   -> viewWillAppear
4   -> viewWillLayoutSubviews
5   -> viewDidLayoutSubviews

6   -> viewDidAppear

0 comments:

Post a Comment

About

Blog Archive

Powered by Blogger.

Blog Archive