Question: In my application. I have to use `UISplitViewController` and I want to do add `UISplitViewController` To `UINavigationController` but I can't do this.

I also know that inheritance of `UISplitViewController` is not possible. but it very important for me to add in `UINavigationController`. 

Thanks in advance :)

Answer: 
**Note**: a UISplitViewController must be the root view of an app (or perhaps more specifically, a window). It can not live inside a UINavigationController or anything else.

refer [can-a-uisplitviewcontroller-be-the-root-controller-in-a-uinavigationcontroller](https://stackoverflow.com/questions/3723342/can-a-uisplitviewcontroller-be-the-root-controller-in-a-uinavigationcontroller) link
You can add `MGSplitViewController` in delegate like :- in .m file

```
    self.splitViewController = [[[MGSplitViewController alloc] init] autorelease];

    //
    MasterPage *aMasterPage = [[[MasterPage alloc] initWithNibName:@"MasterPage" bundle:[NSBundle mainBundle]] autorelease];

    aMasterPage.splitViewController = self.splitViewController;
    self.splitViewController.delegate = aMasterPage;

    UINavigationController *navCntrl = [[[UINavigationController alloc] aMasterPage] autorelease];
    [navCntrl.navigationBar setBarStyle:UIBarStyleBlackOpaque];

    DetailPage *aDetailPage = [[[DetailPage alloc] initWithNibName:@"DetailPage" bundle:[NSBundle mainBundle]] autorelease];               

    UINavigationController *navCntrl2 = [[[UINavigationController alloc] initWithRootViewController:aDetailPage] autorelease];

    [navCntrl2.navigationBar setBarStyle:UIBarStyleBlackOpaque];
    [self.splitViewController setViewControllers:[NSArray arrayWithObjects:navCntrl, navCntrl2, nil]];

    [self.window addSubview:self.splitViewController.view];

```