#import "DetailViewController.h"
@interface Detailviewcontroller ()
@end
@implementation Detailviewcontroller
#pragma the initialization method of the mark-View Controller Object
-(ID) Initwithnibname: (NSString *) Nibnameornil Bundle: (NSBundle *) Nibbundleornil
{
self = [super Initwithnibname:nibnameornil Bundle:nibbundleornil];
if (self) {
Custom initialization
NSLog (@ "%s", __function__);
}
return self;
}
#pragma mark-Methods for loading views
-(void) Loadview {
[Super Loadview];
NSLog (@ "%s", __function__);
}
#pragma mark-The view has been loaded complete
-(void) viewdidload
{
[Super Viewdidload];
Do any additional setup after loading the view.
NSLog (@ "%s", __function__);
}
#pragma mark-Implement---dismissbuttonaction: method
-(void) Dismissbuttonaction: (UIButton *) Sender {
Method of calling modal shutdown
[Self dismissviewcontrolleranimated:yes completion:nil];
}
#pragma mark-A memory warning has been received
-(void) didreceivememorywarning
{
[Super didreceivememorywarning];
Dispose of any resources the can be recreated.
NSLog (@ "%s", __function__);
}
#pragma mark-the view will appear
-(void) Viewwillappear: (BOOL) Animated {
[Super viewwillappear:animated];
NSLog (@ "%s", __function__);
}
#pragma mark-View already appears
-(void) Viewdidappear: (BOOL) Animated {
[Super viewdidappear:animated];
NSLog (@ "%s", __function__);
}
#pragma mark-The view is going to disappear
-(void) Viewwilldisappear: (BOOL) Animated {
[Super viewwilldisappear:animated];
NSLog (@ "%s", __function__);
}
#pragma mark-the view has disappeared
-(void) Viewdiddisappear: (BOOL) Animated {
[Super viewdiddisappear:animated];
NSLog (@ "%s", __function__);
}
#pragma mark-method that has been deprecated
-(void) Viewdidunload {
[Super Viewdidunload];
NSLog (@ "%s", __function__);
}
#pragma Mark-dealloc method
-(void) Dealloc {
NSLog (@ "%s", __function__);
[_dismissbutton release], _dismissbutton = nil;
[Super Dealloc];
}
@end
Uiviewcontroller life cycle