与Parse& amp; Facebook - 不承认应用程序

时间:2015-06-07 12:04:25

标签: ios xcode facebook swift parse-platform

我开始使用Parse和Facebook制作新应用。 在Parse指南中,我需要将此函数(This is the link to the guide)放在AppDelegate.swift中:

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

但是当我这样做时,我收到一个错误:

'() -> FBSDKApplicationDelegate!' does not have a member named 'application'

我该如何解决?

1 个答案:

答案 0 :(得分:0)

您缺少sharedInstance的括号。它应该是sharedInstance()