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`
I found mirroring the boilerplate according to [this article](https://help.github.com/articles/duplicating-a-repository/%20test) the only way to work for me:

Clone boilerplate and create new project:

```
git clone --mirror https://github.com/mxstbr/react-boilerplate.git
cd react-boilerplate.git
git remote set-url --push origin https://github.com/gitUser/newProject

```

Update the new project with changes from the boilerplate:

```
cd react-boilerplate.git
git fetch -p origin
git push --mirror

```