English 中文(简体)
向海洋观测系统发送数据的最佳方式是什么?
原标题:What is the best way to send data to/from iOS?

是否有向海洋观测系统发送数据的最佳做法? 我是否应该远离“JSON”和(或)XML? 还有,是否有这方面的众所周知的框架?

This is the first time I ve had to send data to/from an iOS platform.

Edit

客户/服务器的通信来自SOS,并再次出现。 我计划寄送一个RESTGET/>>POST申请,并接收作为JSON/XML的网页。 然而,我当然愿意提出建议。

最佳回答

I ended up using XMLReader which I found online. You can use native loading and this just converts the XML into a dictionary which is much easier to deal with than using the raw NSXMLParser.

问题回答

http://developer.apple.com/library/mac/#documentation/coa/Conceptual/PropertyLists/Introduction/Introduction.html#/apple_ref/doc/uid/10000048i” rel=“nofollow” 易于读懂,可在OS,并且是xml,这样你就可以在php上使用。

See there are only two ways to pass data in client-server communication 1. XML and 2. JSON

如果你想要轻重数据,那么就掌握了JSON数据,但是没有Pap提供的JSON图书馆。 因此,需要使用某些第三方图书馆,如SBJSON

但是,如果你想要坚持Ampluss,那么就这一 Apple果图书馆而言,你会与XML教区取得联系:NSXParser

Hope this information will be useful to you.





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签