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 order to remove all subviews from superviews:
NSArray *oSubView = [self subviews]; for(int iCount = 0; iCount < [oSubView count]; iCount++) { id object = [oSubView objectAtIndex:iCount]; [object removeFromSuperview]; iCount--; }