gpt4 book ai didi

ios - Facebook 身份验证 - 身份验证期间空白屏幕 - iOS 10 GM,Swift 3

转载 作者:行者123 更新时间:2023-11-28 12:40:51 29 4
gpt4 key购买 nike

自 Swift 3 - iOS 10、Xcode 8 GM SDK 以来,我在使用 Facebook SDK 进行身份验证结束时收到空白屏幕。它以前有效。我在 AppDelegate 中有一些警告:

enter image description here

可能与此有关。

编辑:我知道这些函数已被弃用,我尝试将它们更改为新函数,但 FBSDKApplicationDelegate 仍然请求旧参数...

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)

}

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
return FBSDKApplicationDelegate.sharedInstance().application(app, open: url, sourceApplication: <#T##String!#>, annotation: <#T##Any!#>)
}

如您所见,问题出在第二个函数上。

最佳答案

试试这个!

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
return FBSDKApplicationDelegate.sharedInstance().application(app,open: url,sourceApplication: options[UIApplicationOpenURLOptionsKey.sourceApplication] as! String, annotation: options[UIApplicationOpenURLOptionsKey.annotation])
}

关于ios - Facebook 身份验证 - 身份验证期间空白屏幕 - iOS 10 GM,Swift 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39437734/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com