У меня есть это предупреждение, я не понимаю, где моя ошибка в моем кодекоторого вид не в иерархии окон Facebook Войти
с использованием кода 7.2 и IOS 9.2
Ошибка:
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