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];
這是我的代碼!我需要刪除所有重複數組...我使用這段代碼,但我不明白爲什麼它不起作用。NSMutableArray刪除重複的項目
uniquearray = [[NSSet setWithArray:category] allObjects];
評論此行【元素髮布】; –
檢查[此] [1] [1]:http://stackoverflow.com/questions/1025674/the-best-way-to-remove-duplicate-values-from-nsmutablearray-in- objective-c –