View Controllers life cycle @techytube
View Controllers life cycle  @techytube
Uploaded December 2012 | Updated November 2026, 3 hours ago
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
techytube.com/author/pavel

View Controller call a series of methods before loading all the views and being ready for users to interact with them. The "viewDidLoad" method is invoked first. Inside it we should do any additional setup after loading the view, typically from a nib.

There are other 4 commonly used methods that any iOS developer should know about:

- (void)viewWillAppear:(BOOL)animated
- (void)viewDidAppear:(BOOL)animated
- (void)viewWillDisappear:(BOOL)animated
- (void)viewDidDisappear:(BOOL)animated

"viewWillAppear" is called when the view is about to made visible. Default does nothing.

"viewDidAppear" is called when the view has been fully transitioned onto the screen. Default does nothing.

"viewWillDisappear" is called when the view is dismissed, covered or otherwise hidden. Default does nothing.

"viewDidDisappear" is called after the view was dismissed, covered or otherwise hidden. Default does nothing.

There are situations when we need some specific things to be done, for example to save some data if the user quits the app, and these and some other ones are the places where she to insert that logic in our projects.
View Controllers life cycleUser And Group Administration On Linux Part 3 of 4Installing and getting started with XcodeASP.NET - Passing Parameters Using RazorHow to create a UIDatePicker in iOSdotNET 2.0 C# - Creating A Windows ServiceUpgrading a Windows Server 2008 R2 Domain Controller to Windows Server 2012Windows 8 Development - File Picker Code Review XAMLLogging Messages to the Command Line and working with integer variablesWorking with UIImageView class in iOSWindows 8 Development - File Picker Introduction XAMLiSCSI Virtual Disks with Windows Server 2012 R2
techytube |

View Controller's life cycle

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER