gpt4 book ai didi

iphone - Parse 中的 REST API 与 iOS 应用程序交互

转载 作者:行者123 更新时间:2023-11-29 11:08:51 25 4
gpt4 key购买 nike

我熟悉Parse Mobile App Platform最近。它可用于向移动应用程序添加后端。它包括一个 REST API,让您可以从任何可以发送 HTTP 请求的东西(例如我的 iOS 应用程序)与 Parse 进行交互。

我正在寻找一些易于学习的教程。你认识一个吗?

最佳答案

Parse 有一个 iOS API,因此尽管您可以,但您不必深入到 http 级别并执行您自己的对象序列化和反序列化。

本指南展示了交互: https://parse.com/docs/ios_guide

由于您正在进行 http 调用,我强烈建议您使用 block 查看他们的异步 API,这样您就不会阻塞 UI 线程。例如:

[gameScore saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
if (!error) {
// The gameScore saved successfully.
} else {
// There was an error saving the gameScore.
}
}];

因此,更喜欢所有以“WithBlock”结尾的方法。另见:How do i run a proccess without blocking user interface in my iphone app

关于iphone - Parse 中的 REST API 与 iOS 应用程序交互,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12476072/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com