可以在applicationWillEnterForeground中加入[ [UIApplication sharedApplication].keyWindow.rootViewController presentViewController:<#viewcontroller#> animation:YES
completion:^{ }];
解决问题