you can basically register your viewController for applicationDidBecomeActiveNotification or any depending on your needs
for example, in your viewController viewDidLoad method, you can register it for notification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(myMethod) name:UIApplicationDidBecomeActiveNotification object:nil];
and implement this method in your class, your myMethod will call every time your application becomes active
-(void) myMethod(){
permanently remove the viewController register from the notification in the dealloc method
-(void)dealloc{ [[NSNotificationCenter defaultCenter] removeObserver:self]; }
source share