我开始使用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'
我该如何解决?
答案 0 :(得分:0)
您缺少sharedInstance
的括号。它应该是sharedInstance()