![FBSDKApplicationDelegates没有名为的成员
  “应用”。


如何在Swift中处理此错误?

func application(application: UIApplication,
    openURL url: NSURL,
    sourceApplication: String?,
    annotation: AnyObject?) -> Bool {
        return FBSDKApplicationDelegate.sharedInstance.application(application,
            openURL: url,
            sourceApplication: sourceApplication,
            annotation: annotation)
}

最佳答案

您只是忘记了()

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String, annotation: AnyObject?) -> Bool {
    return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)
}

10-04 23:38