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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-24-2009, 12:44 AM   #9 (permalink)
Georg
Registered Member
 
Join Date: Dec 2009
Posts: 54
Georg is on a distinguished road
Default

Quote:
Originally Posted by Georg View Post
Submit again,,,,,

-(IBAction)FirstView;
{

if (self.optionMenu == nil) {
OptionViewController *optionMenuView = [[OptionViewController alloc] initWithNibName:@"OptionViewController" bundle:nil];
self.optionMenu = optionMenuView;
[self.view insertSubviewptionMenuView.view atIndex:99];
[optionMenuView release];
} else {
[optionMenu.view removeFromSuperview];
}
[self.view removeFromSuperview];
}

The problem is, the subview disappeared because of the last line [self.view remove FromSuperview], how can I keep the last view on the screen and remove the last-1 view?
Georg is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,421
Threads: 94,016
Posts: 402,536
Top Poster: BrianSlick (7,978)
Welcome to our newest member, maryleeag34
Powered by vBadvanced CMPS v3.1.0

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