Q:

Display ViewController on app launch

This is my first post on Stackoverflow so I would like to say "Hello". Forgive me my bad english :)
I've read many threads here on Stackoverflow to solve my problem, but I'm a total begginer so I couldn't make my app work like I want it to.
I want to present animated, modal View Controller if the app is launched for the first time - if not that "intro view" should't be displayed.
I've got Xcode 5 + iOS7 simulator. I have two ViewControllers in "Main.storyboard" file. One of them "is initial View Controller".
I've found out the way to do something if the app is launched for the first time, and then sync it to settings (in "AppDelegate.m" file):
        - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        // Override point for customization after application launch.
        UIColor *tintColor = [UIColor colorWithRed:137/255.0f green:116/255.0f blue:62/255.0f alpha:1.0];
        [[UIButton appearance] setTintColor:tintColor];
        [[UISegmentedControl appearance] setTintColor:tintColor];
        [[UIAlertView appearance]setTintColor:tintColor];

        BOOL ranBefore = [[NSUserDefaults standardUserDefaults] boolForKey:@"ranBefore"];
        if (!ranBefore) {

            //////DISPLAY SECOND (not "is initial view controller") VIEW CONTROLLER HERE\\\\\\

            [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"ranBefore"];
            [[NSUserDefaults standardUserDefaults] synchronize];
        }

        return YES;
    }

How do I do that? Like I said, even the copy-paste from other posts can't solve my problem (I'm a begginer :P). Could you please make a working Xcode project for me and send it via my e-mail adress?

A:

All I had to do was to create a segue in the storyboard file (from one view to another), give it an identifier "goToTutorial" for example, then in the "MainViewController.m" file (which was the class of initial View Controller) I had to implement the viewDidAppear method (when I tried to do that in the "viewDidLoad" I've encountered an error: "Warning: Attempt to present  on  whose view is not in the window hierarchy!
"):
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
}

and perform the segue (iside the viewDidAppear):
[self performSegueWithIdentifier:@"goToTutorial" sender:self];

so it looks like this:
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];

    BOOL ranBefore = [[NSUserDefaults standardUserDefaults] boolForKey:@"ranBefore"];
    if (!ranBefore) {
        [self performSegueWithIdentifier:@"tutorialView" sender:self];
        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"ranBefore"];
        [[NSUserDefaults standardUserDefaults] synchronize];
    }
}

