subscribeToChannelInBackground上的Parse.com启动项目错误

时间:2015-09-15 16:25:55

标签: swift parse-platform

已经有关于同一问题的另一个主题,但这对我没有用。

代码:

PFPush.subscribeToChannelInBackground("") { (succeeded: Bool, error: NSError?) in

    if succeeded {
        print("ParseStarterProject successfully subscribed to push notifications on the broadcast channel.\n");
    } else {
        print("ParseStarterProject failed to subscribe to push notifications on the broadcast channel with error = %@.\n", error)
    }
}

错误:

  

无法使用类型'(String,(Bool,NSError?) - >())的参数列表调用'subscribeToChannelInBackground'

有谁知道如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我刚刚更新Xcode以获取最新的测试版,但它确实有效,但我仍然不知道问题所在。