解析setApplicationID - Xcode 6.3 / iOS 8.3

时间:2015-04-16 00:41:38

标签: ios xcode

Parse.setApplicationId("****", clientKey: "****") {

收到错误说"预期声明" ...在早期版本的Xcode上没有此问题

1 个答案:

答案 0 :(得分:0)

你所要做的就是

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    Parse.setApplicationId("Your_application_id",
                clientKey: "Your_Client_Key")
    return true
}

并导入您的桥接标题:

#import <Parse/Parse.h>