I was thinking maybe something like this might work:
for (UIView* b in self.view.subviews)
{
[b removeFromSuperview];
}
I want to remove every kind of subview. UIImages, Buttons, Textfields etc.
[self.view.subviews makeObjectsPerformSelector: @selector(removeFromSuperview)];
It's identical to your variant, but slightly shorter.