called when the application has finished launching
-(BOOL) Application: (uiapplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchoptions {
NSLog(@ "%s", __func__);
return YES;
}
called when the application will lose focus
-(void) applicationwillresignactive: (uiapplication *) application {
NSLog(@ "%s", __func__);
}
called when the application enters the background
-(void) Applicationdidenterbackground: (uiapplication *) application {
NSLog(@ "%s", __func__);
}
called when the application enters the foreground
-(void) Applicationwillenterforeground: (uiapplication *) application {
NSLog(@ "%s", __func__);
}
Application gets Focus
Focus : Whether you can interact with the user .
-(void) applicationdidbecomeactive: (uiapplication *) application {
NSLog(@ "%s", __func__);
}
called when the application exits
-(void) Applicationwillterminate: (uiapplication *) application {
NSLog(@ "%s", __func__);
}
called when the application receives a memory warning
-(void) applicationdidreceivememorywarning: (uiapplication *) application {
// clean up the cache . Pictures , videos .
NSLog(@ "%s", __func__);
}
called when the controller has finished loading
-(void) viewdidload {
[Super viewdidload];
NSLog(@ "%s", __func__);
}
called when the view of the controller is about to be displayed .
-(void) Viewwillappear: (BOOL) animated{
[Super viewwillappear: animated];
NSLog(@ "%s", __func__);
}
called when the controller's view display is complete
-(void) Viewdidappear: (BOOL) animated{
[Super viewdidappear: animated];
NSLog(@ "%s", __func__);
}
called when the controller's View will be layout child controls
-(void) viewwilllayoutsubviews{
[Super Viewwilllayoutsubviews];
NSLog (@ "%s", __func__);
//}
//
called when the controller view Layout child control is complete
-(void) viewdidlayoutsubviews{
[Super Viewdidlayoutsubviews];
NSLog (@ "%s", __func__);
//}
called when the controller's View is about to disappear
-(void) Viewwilldisappear: (BOOL) animated{
[Super viewwilldisappear: animated];
NSLog(@ "%s", __func__);
}
called when the controller's View disappears .
-(void) Viewdiddisappear: (BOOL) animated{
[Super viewdiddisappear: animated];
NSLog(@ "%s", __func__);
}
UIApplication Agent, Controller view life cycle