无法弄清楚为什么我收到错误 "PFPush does not have a member named sendPushInBackground"
Cannot figure out why I am getting the error "PFPush does not have a member named sendPushInBackground"
我从解析文档中复制了这个,但在最后一行我一直收到错误 "PFPush does not have a member named sendPushInBackground"。我不确定为什么
let pushQuery = PFInstallation.query()
pushQuery.whereKey("deviceType", equalTo: "ios")
let push = PFPush()
push.setQuery(pushQuery) // Set our Installation query
push.setMessage("Willie Hayes injured by own pop fly.")
push.sendPushInBackground()
来自 PARSE DOC:v1.2.21 - 2014 年 8 月 22 日
"Starting this release, you'll need to drag Bolts.framework
(and ParseFacebookUtils.framework if your app interacts with the Facebook SDK) into your Xcode project folder target. Both are located in the Parse SDK download."
因此,如果您在 Swift 中使用它...在您拖动 Bolt 框架之后,您也必须添加此“#import”
#import <Bolts/Bolts.h>
在你的 ...-Bridging-Header.h
编码愉快!
我从解析文档中复制了这个,但在最后一行我一直收到错误 "PFPush does not have a member named sendPushInBackground"。我不确定为什么
let pushQuery = PFInstallation.query()
pushQuery.whereKey("deviceType", equalTo: "ios")
let push = PFPush()
push.setQuery(pushQuery) // Set our Installation query
push.setMessage("Willie Hayes injured by own pop fly.")
push.sendPushInBackground()
来自 PARSE DOC:v1.2.21 - 2014 年 8 月 22 日
"Starting this release, you'll need to drag Bolts.framework
(and ParseFacebookUtils.framework if your app interacts with the Facebook SDK) into your Xcode project folder target. Both are located in the Parse SDK download."
因此,如果您在 Swift 中使用它...在您拖动 Bolt 框架之后,您也必须添加此“#import”
#import <Bolts/Bolts.h>
在你的 ...-Bridging-Header.h
编码愉快!