The problem with your sample is how you built the loop.
When you delete a view at 0, the Subviews array is one shorter, and element 1 becomes element 0 at the next iteration. On the other hand, your self variable continues to grow, so you skip view 1.
miguel.de.icaza
source share