开发者

Using TabBar and separating XML data by category in iPhone?

开发者 https://www.devze.com 2023-02-02 18:24 出处:网络
I want to use TabBar and I\'m going to use many different TableView. What I want to do is, as soon as the main application instance is created,

I want to use TabBar and I'm going to use many different TableView.

What I want to do is, as soon as the main application instance is created, * a big XML file should be loaded * Create TableView instance for each category(which includes array to save XML data) * Loop through XML data and add one by one to proper TableView's array

So after this process, all开发者_如何学运维 TableView instance have an array which contains XML data only belongs to its category. But I can not find where to do this since I'm using TabView template from IB. Should I do all that programmatically??


You have to make use for NSXMLParser for parsing the XML data and store te parsed data in a NSMutableArray. Alternatively you can also use touchXML. Check this link for more details about touchXML. Hope this helps.

0

精彩评论

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