当应用程序从后台进入前台时,我想显示一个特定的 ViewController。
我正在使用此方法来调用 ViewController。
- (void)applicationWillEnterForeground:(UIApplication *)application
{
[self presentMyViewController];
}
但是当它从后台返回时会有延迟。或者换句话说,你可以看到之前的视图,然后你会看到 ViewController。我根本不想显示以前的视图。
怎样才能做到这一点?