Hello,
I'm trying to find a way that my program will show up a "setup"-view, when you first start the app, but it doens´t works.
Here is my attempt. The appdelegate should look, if the program opens the first time (abfrage = false) and open an other view.
#import "TweetButtonAppDelegate.h"
#import "TweetButtonViewController.h"
#import "BenutzerdatenViewController.h"
@implementation TweetButtonAppDelegate
@synthesize window;
@synthesize viewController;
@synthesize abfrage;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
abfrage = FALSE;
if (abfrage == TRUE) {
[window addSubview:viewController.view];
[window makeKeyAndVisible];
} else {
BenutzerdatenViewController *Benutzerdaten = [[BenutzerdatenViewController alloc] initWithNibName:nil bundle:nil];
[Benutzerdaten release];}
}
(...)
I tried to build a if-query in the appdelegate, but always when "abfrage" is false, the program just loads a white view.