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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:38:41+00:00 2026-05-16T20:38:41+00:00

The navigation commences with [[TTNavigator navigator] openURLAction:theUrl]; from one UIviewController controller and another UIViewController

  • 0

The navigation commences with [[TTNavigator navigator] openURLAction:theUrl]; from one UIviewController controller and another UIViewController is the target of that URL. The map is set with set with the following code and there is no doubt navigation goes to the right place:

TTURLMap* map = navigator.URLMap;
[map from:@"tt://goToMyViewController" toViewController:[MyViewControllerClass class]];

In the pushed view controller i want to manipulate the image on the Back button but don’t want to change the title. It should always be the title of the view controller this one was pushed on top of, or localized “Back” if no title was set.

Problem:
In this pushed view controller’s viewDidLoad I’m starting with

NSArray* viewControllers = self.navigationController.viewControllers;

to get the navigation stack so I can look at the title of the appropriate view controller. But viewControllers is nil…

However if I do nothing the default back button does have the correct title. I thought of looking at the leftBarButtonItem and backBarButtonItem title properties but there is nothing meaningful there either…

Anyone know what is going on, why this is happening or how it can be worked around?

  • 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-05-16T20:38:41+00:00Added an answer on May 16, 2026 at 8:38 pm

    This is one of those things where viewDidLoad is the wrong place to do it – after comparing various view controllers and finding no real difference in how they were invoked (yet had nil viewControllers while others didn’t) it struck me that if it was really nil, popViewControllerAnimated shouldn’t work either. I found viewControllers was NOT nil where I was calling popViewControllerAnimated and from there experiment showed I could get the title I was after in viewWillAppear:.
    So, viewWillAppear: seems to be a reliable place to touch self.navigationController while viewDidLoad is not.

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

Sidebar

Related Questions

We have a custom navigation webpart that uses the PortalSiteMapProvider of MOSS to build
I have a navigation view with a cell that has something as simple as
Im using a navigation controller and a normal view. In the view I'd like
My website has a navigation bar that when clicked targets an iframe. i would
i'm making a navigation based application for iphone. one of my view controllers looks
I have a Navigation-bar in my program that allows you to navigate the different
I'm creating a 3 layer navigation popup controller and on the 3rd popup controller
During navigation of the java.lang.reflect.Method class I came across the method isBridge . Its
The navigation on the left menu in the below site uses CSS for mouseover
Today I was working on a tab navigation for a webpage. I tried the

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.