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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:40:07+00:00 2026-06-01T14:40:07+00:00

I have an iOS 5 Tabbed Application, using Storyboards. My Tabbar Controller points to

  • 0

I have an iOS 5 Tabbed Application, using Storyboards.

My Tabbar Controller points to three Navigation Controllers.

From one of them, the flow looks like this:

Start view –> Photo view (modal) –> Catalog view

On the photo screen, I have a button with the following code:

- (IBAction)acceptPhotoButtonPressed:(id)sender {
    UIViewController *catalogView = [self.storyboard instantiateViewControllerWithIdentifier:@"CatalogView"];
    [self.navigationController pushViewController:catalogView animated:YES];
}

I’ve tried fooling around with presentingViewController, parentViewController – even type casted those to a UINavigationController. That causes it to crash, with the following error message:

2012-04-06 00:32:45.808 myapp[19345:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController pushViewController:animated:]: unrecognized selector sent to instance 0x18d0d0'

So that tells me that I haven’t got hold of a UINavigationController, but a UITabBarController.

Is there any way around this?

  • 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-01T14:40:08+00:00Added an answer on June 1, 2026 at 2:40 pm

    A “push” style segue can only be done from a view controller that is being managed by a UINavigationController. If you try to do so otherwise nothing will happen.

    Instead of displaying your Photo view modally as you describe in your question, you should display an instance of UINavigationController as the modal view and make the Photo View the root view controller of the navigation view. (This can all be set up through storyboard). Then your push segue will work.

    If you do not wish for the top navigation bar to appear on your first view controller (Photo view)
    you can use:

    [self.navigationController setNavigationBarHidden:YES animated:NO]
    

    This will hide top nav bar. Once you push a new view controller, if you want the nav bar to reappear on that one and any subsequent view controllers you’ll have to set setNavigationBarHidden to NO on the new viewcontroller.

    [self.navigationController setNavigationBarHidden:NO animated:NO]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iOS application with several controllers, each with their own xib files.
Overview I have an iOS project which contains 2 navigation controllers as shown in
I have an iOS app that makes phone calls using the Telephone application by
i have an iOS application witch uses the current location of the user. I
I have an iOS application. Application has 2 different views: Main and Settings. In
I have an IOS application which uses environment variables and am able to set
I am a beginner in iOS development and have just start using the lasted
I have an iOS application that allows the users to download content and then
I'm making a tabbed application, and i came across an issue. I have a
I have an iOS application for which I want to create a ViewController programmatically.

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.