Posted By

pete on 10/13/10


Tagged

UIView


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

bobbym245
shalomfriss


Removing all subviews from a view


 / Published in: iPhone
 

  1. for (int i = 0; i < [[self.view subviews] count]; i++ ) {
  2. [[[self.view subviews] objectAtIndex:i] removeFromSuperview];
  3. }

Report this snippet  

You need to login to post a comment.