Thanks,
But not sure if im doing this correctly. I understand the above code.
But when i start my app my app delegate loads a viewcontroller which is my main menu. Then i have a button that takes me to another view and on there is my features if the user clicks a feature that is not unlocked then it displays another view controller with the store on.
So with this in mind how do i get back to my main menu.
I have tried the following:
NSArray *subviews = [myAppdelegate.viewcontroller.view subviews];
for (int i=0; i<[subviews count]; i++)
{
[[subviews objectAtIndex:i] removeFromSuperview];
}
but i get and error along the lines of:
expected ':' before '.' ?