I have the mpmoviemovie controller over which I have 2 more views. One of the view has a button over it. On the action of those buttons i want to stop and release the player. hwen I try to release the subviews
NSArray* SubViews= [[self.view superview] subviews];
for (int i=0 ;i<[SubViews count]; i++){
[[SubViews objectAtIndex:i] removeFromSuperview];
}
[[self navigationController] popToRootViewControllerAnimated:YES];
I release all the subviews but it doenot go back to the view that had these views generated and also the audio keeps on playing.