我有这个代码检查用户是否登录到FB,如果是,则更改视图
if(FBSDKAccessToken.currentAccessToken() == nil){
print("Not Logged In")
} else {
print("Logged In")
self.performSegueWithIdentifier("showNew", sender: nil)
}
我已经正确地标记了标识符,但它仍然没有改变视图它只是继续,好像代码不在那里
错误:
2015-11-11 13:51:03.377 quiz[37727:1264770] Warning: Attempt to present <quiz.homeScreen: 0x7fb1bbc34910> on <quiz.ViewController: 0x7fb1bbe9af20> whose view is not in the window hierarchy!