Question: I'm working on integrating a facebook connect to my application and I have 2 problems:

1.
`LBLoginViewController` is the view that presents as the app launches.
I want to use the storyboard to put some ui elements but for some reason that I don't understand I cannot do that manually, only in code. How can I use the custom class `LBLoginViewController`?

2.
after the log in success I manage to load a view controller. I wont to load a `UITabBarController` but the method I'm using cannot do that. Which method can I use to do so?

this is the code:

```
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];

// the view controller that load after log in
    ListOfJobs *rootViewController =
    [[ListOfJobs alloc] init];

    UINavigationController *navController =
    [[UINavigationController alloc]initWithRootViewController:rootViewController];

    self.window.rootViewController = navController;

    [self.window makeKeyAndVisible];

    // if the user logs in, do nothing - the root view is already up
    if (FBSession.activeSession.state
        == FBSessionStateCreatedTokenLoaded) {
        NSLog(@"User Logged In");
    }
    //create and present the login view controller
    else {
        LBLoginViewController *loginViewController =
        [[LBLoginViewController alloc] init];
        [rootViewController presentViewController:
         loginViewController animated:NO completion:nil];
    }

    return YES;
}

```

Answer: 
I just found this answer <https://stackoverflow.com/a/4096529/131227> as well as a comment ([git workflow - using one repo as the basis for another](https://stackoverflow.com/questions/4096448/git-workflow-using-one-repo-as-the-basis-for-another?rq=1#comment4409551_4096529)) which together lead me to a solution I like.

`git clone -o boilerplate ssh://git@github.com/user/proj.git new_proj`  

The -o boilerplate renames the origin to `boilerplate` which can still be used to pull changes from.

Create your new empty github new\_proj repo.
Then  

`git remote add origin ssh://git@github.com/user/new_proj.git`
Option 1: clone / fetch / merge
-------------------------------

Clone the `master` branch of the seed project of your choice, for example:

```
$ git clone -o react-starter-kit -b master --single-branch \
      https://github.com/kriasoft/react-starter-kit.git MyApp
$ cd MyApp

```

Down the road, you can pull and merge updates from the seed project back into your local repo by running:

```
$ git checkout master
$ git fetch react-starter-kit
$ git merge react-starter-kit/master
$ npm install

```

Option 2: clone / pull / diff
-----------------------------

Clone the seed project and remove its version history:

```
$ git clone https://github.com/kriasoft/react-starter-kit --depth=1
$ git clone https://github.com/kriasoft/react-starter-kit MyApp --depth=1
$ cd MyApp
$ rm -rf .git

```

Then, whenever you need to pull the latest updates from the seed project back into your local repo, you can navigate to the original seed project, pull the updates (`git pull`), then compare that folder with your project's folder by using some good Diff tool (e.g. Beyond Compare) that allows you to save and customize folder comparison sessions.