NSLog(@"Ci sono %d categorie",category.count);
for(int c=0; c<category.count; c++){
CategoryArray * element =[category objectAtIndex:c];
NSLog(@"******************************");
NSLog(@"Titolo %@",element.label);
NSLog(@"Source %@",element.url);
NSLog(@"******************************");
[element release];
This is my code! I need to remove all duplicates array… I use this code but I don’t understand why it doesn’t work.
uniquearray = [[NSSet setWithArray:category] allObjects];
you can use following code.
And you will get category array without duplicate values.
you can see Edit code. i think this will work.