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


RSS Icon Subscribe to comments

You need to login to post a comment.