我有這樣的警告,我不明白的地方是我使用的代碼7.2和iOS 9.2誰的觀點是不是在窗口層次的Facebook登錄
錯誤我的代碼
錯誤:
warning: Attempt to present < VidcustCustomAppIos.VCTabBarController: 0x7ff838f50790 > on < FBSDKContainerViewController: 0x7ff838d8ceb0 > whose view is not in the window hierarchy!
@IBAction func facebookLoginDidTouch(sender: AnyObject) {
let loginManager = FBSDKLoginManager()
loginManager.logInWithReadPermissions(["public_profile", "email"], fromViewController: self) { (result:FBSDKLoginManagerLoginResult!, error:NSError!) -> Void in
if (result.isCancelled) {
print("Cancelled")
} else {
print("Logged in")
let token = FBSDKAccessToken.currentAccessToken()
VCClusterManager.sharedInstance.connectWithFacebook(token.tokenString, completion: { (isConnected, error) ->() in
if error == nil && isConnected == true {
self.performSegueWithIdentifier(self.segueIdentifier, sender: nil)
}
})
}
}
}
Madhava \t 「嵌入容器中的視圖控制器」是什麼意思。當你說嵌入到一個容器中時,你到底意味着什麼?你指的是什麼? – breaktop