所以我只是試圖用解析來設置我的新應用程序。我已經下載了他們的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' 類型的參數列表 「(字符串,(BOOL,NSError) - >( ))」
您沒有編寫該代碼?但它已經在那裏?你使用的是與你的swift版本相匹配的正確框架版本嗎? – luk2302
是的,那已經在那裏了。我如何檢查我的版本是否正確?謝謝 –