我有这样的警告,我不明白的地方是我使用的代码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