The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 04-14-2009, 04:30 PM
What's Jailbreak?
 
Join Date: Mar 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
nagView - want to bring up existing view in TabBarViewController.

FYI: I have an app which uses a TabBarController with 5 tabs.....The code below is in AppDelegate, DidFinishLaunching......I want to have different views open according to weather they filled out their user details.......the if else statement is working properly, and the code below does seem to work. However, I would like to modify it so the nag screen is not a new view...It should open one of the existing views, but when code for the different view is inserted, it gives me the syntax error before controller...see code below if you can help. I appreciate it.


- (void)displayMyApp:(UIApplication *)application {
[window addSubview:rootController.view];
********lots of code here*********
}


- (void)displayNagScreen:(UIApplication *)application {
[window addSubview:nagScreenController.view];

**** get an error if nagscreenController is changed to an existing controller in myapp******
}

- (void)applicationDidFinishLaunching:(UIApplication *)application {

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *name1 = [defaults objectForKey:@"****"];

if (name1 == nil) {
[self displayNagScreen:application];
}
else {
[self displayMyApp:application];
}

[window makeKeyAndVisible];
}


In the following example, if an existing view is inserted in the place of nagScreenController, the syntax error comes. How do I use an existing View?
Thank you.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 02:05 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top