Grouping data in an NSMutable array

Posted by padatronic on Stack Overflow See other posts from Stack Overflow or by padatronic
Published on 2010-04-19T13:50:52Z Indexed on 2010/04/19 13:53 UTC
Read the original article Hit count: 300

Filed under:
|
|
|

Hi guys, 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.

thanks peeps

© Stack Overflow or respective owner

Related posts about iphone

Related posts about group