Reputation: 16793
I have the following NSMutableArray
called test
.
I wonder how could I able to filter only comboItemNames
from the following object?
I could able to write a for
loop to iterate each comboItemNames
as follows, but I am looking for better way.
NSMutableArray * names = [[NSMutableArray alloc]initWithCapacity:10];
for (id t in test)
{
[names addObject:((ComboItemPopOver*)t).comboItemNames];
}
Upvotes: 0
Views: 102