XML question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andyadams
Forum Newbie
Posts: 1
Joined: Thu Feb 05, 2015 3:48 am

XML question

Post by andyadams »

I have an array i load with lots of data from an xml file. I am displaying this on a tableview and then when you click on say an author it goes through to display all their books.

At the minute my NSMutableArray has an entry for every each book with title, author and so on. So in the table of authors it display the authors name as many times as they have books. I want to group the array data so the table only displays each author once but the author contains an array of his books. Seems simple but I can't find a group method for arrays.
generate isbn barcode in .netvb.net isbn generator
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: XML question

Post by Christopher »

Is this a PHP question? I thought NSMutableArray was a Java or ObjectiveC class?
(#10850)
Post Reply