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?
Use the Following code to remove all subviews.
for (UIView *view in [self.view subviews]) { [view removeFromSuperview]; }