Shishir.bobby
Shishir.bobby

Reputation: 10984

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?

Upvotes: 0

Views: 248

Answers (1)

Can Berk G&#252;der
Can Berk G&#252;der

Reputation: 113370

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:

Upvotes: 1

Related Questions