Quote:
Originally Posted by pygmybutcher
This is the most elegant of the methods posted here. Thanks, Brian.
|
Elegant is a dirty word. makeObjectsPerformSelector says in the docs that you shouldn't give it something that modifies the array. removeFromSuperview does. Make a copy of the subviews array and work on it and stop trying to write one line solutions. (Same problem as a vanilla For loop affecting the array it is working over.)