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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:34:39+00:00 2026-06-13T23:34:39+00:00

I have 3 view controllers, vcA , vcB and vcC . I am on

  • 0

I have 3 view controllers, vcA, vcB and vcC.

I am on vcA and push vcB. It works.

When I try to push vcC from vcB, it fails. I see that self.navigationController property of vcB is nil.

Reading the help file regarding to this property, I see this:

This property is nil if the view controller is not embedded inside a navigation controller.

So, vcB is probably not inside the navigation controller.

My question is, is self.navigationController pushViewController:vcB ... enough to embed vcB on the navigation controller? If not, how do I embed vcB on the navigation controller?

NB: vcA is built on Interface Builder and vcB and vcC are created programmatically.

  • 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-13T23:34:41+00:00Added an answer on June 13, 2026 at 11:34 pm

    After 3 days I finally solved this problem.

    This problem is that the one of my viewControllers and the navigationController were both connected to the delegate’s rootViewController outlet. Thanks Xcode for not pointing that! Sorry but I have to say again that I hate Xcode 4 now more than ever.

    The solution for this problem, was related with another problem I had and can be seen here: https://stackoverflow.com/a/13280574/316469

    Thanks guys.

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

Sidebar

Related Questions

I have two view controllers in my storyboard and I need to push from
I have two view controllers that allow changes to the Address Book. The first
I am implementing view controllers that shall have different behaviour. They have a common
I have an app with a custom UITabBarController that contains five view controllers. Within
I have two view controllers A and B. From A, I navigate to view
Lets say that I have 4 view controllers (call them FirstView,SecondView,ThirdView,FourthView) which are created
I have two View Controllers, I need to have a button in ViewControllerOne that
I have two view controllers, and each have a UIView that has a label
I have a view controller that initializes two other view controllers. The view for
I have a view that contains a UITableView and a UILabel which works perfectly

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.