hi.
this code is from beginning iphone development
- (void)viewDidLoad {
......
UIApplication *app=[UIApplication sharedApplication];
......
[super viewDidLoad];
}
my question is that why did not the author make [super viewDidLoad] the first statement. according to some rules, we should set up the things from its superclass and then itself. the author did so in both versions of his books. is there a special purpose?
this code is from beginning iphone development
- (void)viewDidLoad {
......
UIApplication *app=[UIApplication sharedApplication];
......
[super viewDidLoad];
}
my question is that why did not the author make [super viewDidLoad] the first statement. according to some rules, we should set up the things from its superclass and then itself. the author did so in both versions of his books. is there a special purpose?