Quote:
Originally Posted by nobre84
If he has a subview filled only with buttons wouldn't the performance be the same of the array without the need to create it?
But in fact I didn't stop to think about the inner working of viewWithTag and the very bad scenarios that could happen
|
Actually, using an array you can access the objects directly giving its array index to [array objectAtIndex:...].... This eliminates the need to FOR loop through them all. Again, if we're talking about 5, 10, 25 objects either is fine - but for larger numbers I would use the array.