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 8207115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:54:02+00:00 2026-06-07T08:54:02+00:00

I have an iPhone application that uses a tabbar on all my views. Also,

  • 0

I have an iPhone application that uses a tabbar on all my views.
Also, my first view controller has no navigationBarController but my second view does, as well as the tabbar.

My second view controller is a tableview and when I click on one of the cells, I want to be taken to the first view controller (passing along a parameter with it).

I’ve tried a few ways of doing with, which all kinda work, but don’t.

secondViewController.m
FirstViewController *firstViewController = [[FirstViewController alloc] initWithNibName:@"FirstView" bundle:[NSBundle mainBundle]];
[firstViewController passThisAlong:@"id"];

//[self presentViewController:firstViewController animated:YES completion:nil]; //1
[self.navigationController pushViewController:firstViewController animated:YES]; //2
//[self.tabBarController presentViewController:firstViewController animated:YES completion:nil]; //3
[firstViewController release];
firstViewController = nil;

So as you can see above, I’ve tried 3 different methods of getting to the first view controller.
The second one loads the first view, drilled down inside the second view, as it keeps the nagigationBarController (even though first view doesn’t have one) with the back button to the second view.

The other two do the same thing as each other. Which is it goes to the first view (without a navigationBar), but, there is no tabbar and the content of the first view has been shifted up about the height of the tabbar, and in it’s place is just blackness.

I hope this all makes sense. I just want to be able to go from my second view when someone selects a cell in the table, to my first view as if I’d clicked the icons in the tabbar.

I’ve seen in the docs
'On iPhone and iPod touch, the presented view is always full screen. On iPad, the presentation depends on the value in the modalPresentationStyle property.' not sure if this is related to my issue and if so, if there’s a way around it.

Many thanks,

  • 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-07T08:54:03+00:00Added an answer on June 7, 2026 at 8:54 am

    It’s normal, a modal View is supposed to work this way

    From Apple Documentation

    The ability to present view controllers is a tool that you have at your disposal for interrupting the current workflow and displaying a new set of views. Most commonly, an app presents a view controller as a temporary interruption in order to obtain key information from the user. However, you can also use presented view controllers to implement alternate interfaces for your app at specific times.

    In your didSelectRowAtIndexPath you can use something like

    YourAppNameDelegate *appDelegate = (YourAppNameDelegate *)[[UIApplication sharedApplication] delegate];
    [appDelegate tabBarController].selectedIndex = 0;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iphone application that uses a navigation controller. In that controller I
I have an application that perfectly works on iPhone os 2.2.1 but when I
I have an iPhone application that uses a timer and at every time interval
I have an iPhone application that uses a sqlite3 database for saving data and
I have an iPhone application I've been using for some time that uses ASIHTTPRequest
I have an iPhone application that uses a set of plists to load the
How can I make an iphone application that uses a UITableView but so the
I have an Xcode project (for an iPhone application) that uses cocos2d. I have
I have an iPhone application that loads succesive views in a framework based on
I have an iPhone iOS4.1 application that uses localized strings. I have just started

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.