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

  • Home
  • SEARCH
  • 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 8304991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:58:48+00:00 2026-06-08T17:58:48+00:00

I am trying to create a custom sidebar navigation pane in my iPad app

  • 0

I am trying to create a custom sidebar navigation pane in my iPad app something like Instapaper for iPad. With the help of some excellent tutorials like the one by Scott Sherwood, I was able to create a custom sidebar and switch between the view controllers.

I implemented this using a root view controller in which I have two views – one is the tabbar view, other represents the content associated with the tab selected, something like this…

enter image description here

Whenever I select the tab I just add a subview to the Root View Controller, like this…

@implementation RootViewController

//
// some code here
//

#define TABBAR_WIDTH 80.0F
- (void)buttonTapped:(UIButton *)aButton
{
    UIViewController *newVC = [self.storyboard instantiateViewControllerWithIdentifier:@"SomeView"];
    [newVC.view setFrame:CGRectMake(TABBAR_WIDTH, 0, self.view.bounds.size.width - TABBAR_WIDTH, self.view.bounds.size.height)];
    [self addSubView:newVC.view];
}

Now what I want to do is push a new view into the Contents not based on tab selection but based on some interaction in the contents view. The way I have figured out to do this is adding another subview to the superview. In that case, however I will have to implement the pushing, popping, back buttons, animations between views all by myself.

I was wondering if I can implement this scenario using UINavigationController (so that the pushing, popping, back buttons are handled auto-magically).

Can somebody shed some light over this topic? May be even a brief overview of how this could have been implemented in Instapaper iPad app would help.

  • 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-08T17:58:49+00:00Added an answer on June 8, 2026 at 5:58 pm

    Here you require navigation in the container view.

    So you can go with this thing:

    1. Have one navigationController (alloc-init-set frame-navigation bar hidden, etc.) having your content1 view controller as root controller.
    2. In Content1 view controller, on button tap event, just push your navigation controller to Content2 view controller, and do the same for pop event

    Alloc – init your navigation controller in your root controller where you have your custom tab and container view in xib…

    Note: Clear your container view before adding any other views.

    I have already done this scenario so its working fine for me.

    Hope this is what you required…

    Enjoy Coding 🙂

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

Sidebar

Related Questions

I'm trying to create a custom helper like this: # app/controllers/my_controller.rb class MyController <
I'm trying to create Custom UIPickerView, something like below.. : http://img824.imageshack.us/img824/3015/pickercustom.png Example : From
I'm trying to create a custom form input that utilizes some images, it should
I'm trying to create a custom usercontrol that acts like a button, but i
I am trying to create some custom templated widgets with dijit.layout objects (BorderContainer, ContentPane)
I'm trying to create a custom 404 page in my admin when something goes
I'm trying to create a custom webpart. To implement error handling I would like
I am trying to create custom Check Box button image. After some research, I
I am trying create my custom Style spinner with help of this site. But
I'm trying to create custom view that shows some info about it: Name, Id,

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.