如何在 Objective-C 中制作 json 字符串的块?
我正在使用 ASIFormDataRequest 将 json 字符串从我的 iphone 应用程序发送到服务器。有时,当该字符串太大时,iPhone 不会发送它。请求setTimeOutSeconds为60秒。我想在 json 字符串很大时对其进行分块,然后将这些块发送到服务器。我无法使用 ComponentsSeperatedByString: 方法。我如何制作 json 字符串的子字符串数组。假设每个子字符串长度应为 200。提前致谢。
I am sending a json string from my iphone application to server using ASIFormDataRequest. Sometimes when that string is too big, iphone doesn't send it. request setTimeOutSeconds is 60 seconds. I want to make chunks of my json string when its big and then send those chunks to server. i can not use componentsSepratedByString: method. How can i make an array of substrings of json string. lets say that every substring length should be 200. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试这样的事情:
Try something like this: