I wanna present a UIViewController when come into foreground app.
And i am using this code in applicationWillEnterForeground method in Objective C appDelegate app , but it does not works for me.
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
PasscodeViewController *vc = [sb instantiateViewControllerWithIdentifier:@"passcodeVCID"];
[self presentViewController:vc animated:YES completion:nil];