Set array into table view?
Here is what my XML looks like (I'm calling XML using JSON)
<shishir>
<english>
<0>a</0>
<1>aa</1>
<2>aaa</2> 开发者_如何转开发
<3>aaaa</3>
<4>aaaaaa</4>
<5>aaaaaaa</5>
</english>
</shishir>
Now what I want is to put this value in an array, and then I want to set this array into a table view.
But I have no idea how can I do it. How can I set this array in a table view?
If you have valid XML, it's easy to parse it using NSXMLParser.
You can then create a UITableViewController
subclass and present the data in the array quite easily.
These two guides should be of help:
- Event-Driven XML Programming Guide for Cocoa
- Table View Programming Guide for iPhone OS
精彩评论