Sorting Table Cells based on data from NSArray

Posted by Graeme on Stack Overflow See other posts from Stack Overflow or by Graeme
Published on 2010-04-24T09:51:23Z Indexed on 2010/04/24 9:53 UTC
Read the original article Hit count: 323

Filed under:
|
|
|

Hi,

I have an NSArray which contains information from an RSS feed on dogs, such as [dog types], [dog age] and [dog size]. At the moment my UITableView simply displays each cell on each dog and within the cell lists [dog types], [dog age] and [dog size].

I want to be able to allow users of my app to "sort" this data based on the dog name, dog size or dog age when they press a UIButton in the top nav-bar.

I'm struggling to work out how to filter the UITableView based on these factors, so any help is appreciated.

Thanks.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about iphone