Uiviewcontroller
When a view controller is created and displayed on the screen. Order of execution of code
1, Alloc create objects, allocate space
2. Init (Initwithnibname) initializes the object, initializes the data
3, Loadview Create Self.view
4, Viewdidload loading complete, can be customized data and dynamic creation of other controls
5, Viewwillappear View will appear before the screen, the view will be displayed on the screen immediately
6, Viewdidappear view has been rendered on the screen completed
7. Viewwilldisappear view will be removed from the screen before execution
8, Viewdiddisappear View has been removed from the screen, the user can not see this view
9. Dealloc view is destroyed,
Wen/hustbroventure (author of Jane's book)
Original link: http://www.jianshu.com/p/3ffe5bd4c949
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".
201060512 Viewcontroller View