Removing all subviews from a view


/ Published in: iPhone
Save to your folder(s)



Copy this code and paste it in your HTML
  1. for (int i = 0; i < [[self.view subviews] count]; i++ ) {
  2. [[[self.view subviews] objectAtIndex:i] removeFromSuperview];
  3. }

Report this snippet


Comments


You need to login to view comments.