1
执行赛格瑞我有以下代码:从的appdelegate
- (void)applicationDidBecomeActive:(UIApplication *)application
{
//make sure that the user credentials are still ok
if (userLeftApplication){
BaseViewController * baseViewController = [[BaseViewController alloc]init];
BOOL detailsAreOK = [baseViewController credentialsValidated];
if (!detailsAreOK){
[self.window.rootViewController performSegueWithIdentifier: @"fromSplashToLogin" sender: self.window.rootViewController];
}
userLeftApplication = FALSE;
}
}
不过,我得到了以下异常试图执行SEGUE时:
Attempt to present <LoginViewController: 0x2012e180> on <FirstViewController: 0x1f59cef0> whose view is not in the window hierarchy!
和用户没有被定向那里。
出了什么问题?