I want to know is it good to call viewWillAppear: method in NSNotificationCenter defaultCenter.
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(viewWillAppear:) name:UIApplicationDidBecomeActiveNotification object:nil];
Or
-(void)setUpInitialization{
// dump code here in ViewWillAppears.
}
Call the method setUpInitialization
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(setUpInitialization) name:UIApplicationDidBecomeActiveNotification object:nil];
If directly call viewWillAppear is a not good way to implement?