Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8152405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:42:17+00:00 2026-06-06T15:42:17+00:00

I have an app that I just got setup with a split view controller

  • 0

I have an app that I just got setup with a split view controller to display blogs on the ipad version of the app. The current setup is master controller is a table view to show the different articles off the blog, and the detail controller is a view controller with a webview inside used to show the content of the article. The issue is that I have a few other features in the app, and on the iPhone version, I use a tab bar controller to navigate. What would be some options to add buttons to the detail controller that would allow me to navigate to the other sections of the app? I know I can’t get a Tab Bar Controller within the Split View Controller so I just need some guidance.

I know that the Engadget app is setup so that when you open in portrait mode, it shows the table view of apps, along with a controller at bottom to go to different things like photos, and when in landscape the table view is on the left and the text of the articles is on the right. I just want it set up so there is no blank page if you open in portrait mode, and have a feature to view other pages, besides just adding buttons to the navigation bar.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:42:19+00:00Added an answer on June 6, 2026 at 3:42 pm

    you CAN add a tabBarController to your SplitViewController’s detail view. Simply create a UIViewController that responds to <UITabBarControllerDelegate> and in the xib file for that controller add a UITabBarController object and link it to your UIViewController. In your viewDidLoad add the Tab bar controller to the view:

    -(void)viewDidLoad {
    
         ...
    
         [self addChildViewController:myTabBarController];
    
         //add the tabBarController view
         [self.view addSubview:myTabBarController.view];
    
    }
    

    This UIViewController will be assigned to your detail view. this works and I’ve tried it before. However, whether apple would allow it? i don’t know!

    EDIT:

    first of you should never call viewDidLoad yourself.

    Also, i don’t think you need rootipad and detailipad as long as the controllers are linked to the SplitViewController in the xib file.

    in your RootViewiPad (master) add the following inside its viewDidLoad :

    -(void)viewDidLoad {
    
        ...
    
        if (self.interfaceOrientation == UIInterfaceOrientationPortrait || self.interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) {
    
            //select the first row to load 
            [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:NO scrollPosition:UITableViewScrollPositionNone];
    
            //NOTE, I'm assuming that selecting the cell will load the detail view.
            //if that is not the case, you need to do what ever you need to load the 
            //detail view.
        }
    }
    

    if you want this behavior to happen every time (not only on first load) then add the code to the -(void)viewWillAppear method instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple Mac Cocoa app that just has a Web View
I'm now testing GKPeerPickerController. I have a simple app that just have a button
I just need to play a simple sound, I have app that send messages,
I was just wondering, I have an app that relies on Core Data for
I'm just curious, if I have an app that's paid on the store and
I've just installed OS X Lion and XCode 4.1. I have an app that
I have a simplistic app (just learning) that reads some XML data from a
I have got a multi-threaded app that process a very large data file. Works
We've got an app with some legacy printer setup code that we are still
I have app that sometimes crashes in navigating through Navigation bar and in console

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.