我用 Swift 编写了一个应用程序,我还使用 Cocoapods 和最新的 Parse SDK。
我在“模拟器”中用一些方法测试 Parse,例如
PFUser.logInWithUsernameInBackground
query.findObjectsInBackgroundWithBlock
一切都很好。
但是,当我在“iPhone”中测试时,我无法连接到 Parse。它只是调用方法,没有响应,你只能在状态栏中看到微调器。
我将我的 iPhone 更新到 iOS 8.0,它可以正常工作。如何让它在 iOS 7 上运行?
最佳答案
您必须在 AppDelegate 的 didFinishLaunchingWithOptions 中设置 ApplicationId
和 ClientKey
方法
关于ios - 无法在 iPhone 中使用 Swift 连接到 Parse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24471279/