https://parse.com/apps/quickstart#parse_data/mobile/ios/swift/new
で公開されているSDKをxcode8.0を使ってswift3に変換すると以下のエラーが出てしまうのですが、どの様に修正すれば良いのか分かりません。どなたかアドバイス頂けませんでしょうか。よろしくお願いいたします。
以下が該当部分のコードです
//-------------------------------------- // MARK: Push Notifications //-------------------------------------- func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { let installation = PFInstallation.current() installation.setDeviceTokenFrom(deviceToken) installation.saveInBackground() PFPush.subscribeToChannel(inBackground: "") { (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) } } }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。