Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-17-2009, 03:23 PM   #3 (permalink)
mbarron
Registered Member
 
Join Date: Jun 2009
Posts: 28
Default

Quote:
Originally Posted by jsd View Post
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.

Last edited by mbarron; 06-17-2009 at 03:49 PM.
mbarron is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,805
Threads: 89,205
Posts: 380,613
Top Poster: BrianSlick (7,129)
Welcome to our newest member, chloecoburn
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:14 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.