When my app gets back to its root view controller, in the viewDidAppear: method I need to remove all subviews.
viewDidAppear:
How can I do this?
In objective-C, go ahead and create a category method off of the UIView class.
- (void)removeAllSubviews { for (UIView *subview in self.subviews) [subview removeFromSuperview]; }