Quote:
Originally Posted by jsd
try
Code:
[self.view removeFromSuperview];
That's what I do in my app and it works.
|
Thanks, but when I change my code to the following:
Code:
-(IBAction) startSettings:(id)sender {
[self.view removeFromSuperview];
SettingsViewController *settingsControllerview = [[SettingsViewController alloc] initWithNibName:@"Settings" bundle:nil];
[self.view insertSubview:settingsControllerview.view atIndex:0];
}
I get a completely blank screen. I'm thinking that I just destroyed the view that I'm trying to insert settingsControllerView into.any other suggestions?
{added} in my previous button I seemed to be hiding the view container, but not the buttons within. That is, the background of start and settings are different and change, but the buttons from start remain on the screen. Hope that helps someone point me in the right direction.