tags:

views:

10

answers:

0

i can pull the data from xml and can display in table view but how to arrange them in alphabetical order with header as A(shows data starts from A),B( with b),C....

i tried this

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)row {

    if(row == 0)
        return @"Countries 88888to visit"; work only once
    if(row == 1)
        return @"Countries visited"; not woring
}

but i dont know how many elements with A i have so i cant do row==1