开发者

iPhone: How to populate a table view from XML data?

Let's say I have XML data 开发者_如何学运维that I just downloaded from a web app api.

  • How do I parse the data?
  • How do I populate each cell of a table view with this data?


Here is a tutorial that does exactly what you are asking for. It downloads an RSS feed (which is XML), parses it, then loads the data into a table.

It should be easy to modify this for your application.

http://theappleblog.com/2008/08/04/tutorial-build-a-simple-rss-reader-for-iphone/


try using NSXMLParser. You can get the documentationhere

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜