i am pulling data from xml so is that possible to show them group by??
i have no plsit right now i am showing data just as simple so now i want group by what should be the approach/concept??
i did something like this but no luck
d*o i need to do some sorting?? like using NSSortDescriptor??*
if yes then where in viewdidload or in cellforrowatindxpath??
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//UITableView *tableView;
UITableViewCell *cell;
static NSString *CellIdentifier = @"Cell";
**Book *aBook = [appDelegate.books objectAtIndex:indexPath.row];**
/// how to arrange them in group by??
i tried this
NSString *keys =aBook.name;
NSMutableDictionary *dicta = [NSMutableDictionary dictionary];
[dicta setObject:keys forKey:@"message"];
NSSortDescriptor *sortNameDescriptor =
[[[NSSortDescriptor alloc]
initWithKey:@"message" ascending:YES]
autorelease];
but i cant display them in alphabetical order :(
}
Thanks