【发布时间】:2016-01-20 11:17:01
【问题描述】:
所以我只是想用 parse 设置我的新应用程序。我已经下载了他们的 SDK 并粘贴了我的 applicationID。问题在于推送通知(我什至没有碰过)。有人可以帮帮我吗? 谢谢
错误代码:
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)
}
}
}
上面写着:
无法使用参数列表调用“subscribeToChannelInBackground” '(String, (Bool, NSError?) -> ())' 类型的
【问题讨论】:
-
那段代码不是你写的吗?但它已经在那里了?您是否使用了与您的 swift 版本匹配的正确框架版本?
-
是的,它已经在那里了。如何检查我的版本是否正确?谢谢
标签: ios xcode swift parse-platform