samedi 30 août 2014

Compare 1 NSarray and 1 NSset count duplicate in 1 of this


Vote count:

0




Thanks in advance for the help :) I have 1 NSArray whit list of nations and 1 NSSet of this array :



NSArray * nations = [[NSArray alloc]initWithObjects:@"russia",@"holland",@"switzerland",@"switzerland",@"belgium",@"holland",@"holland",@"czechia", nil];
NSSet * nationsSet = [NSSet setWithArray:nations];


Now i'm getting number of section for tableview from nationsSet.count,there is a way to check duplicate objects of NSset contained in NSArray for get number of rows for tableview?


holland section 3 rows, switzerland section 2 rows, russia section 1 row...


Thx Alex



asked 33 secs ago







Compare 1 NSarray and 1 NSset count duplicate in 1 of this

Aucun commentaire:

Enregistrer un commentaire