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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:51:49+00:00 2026-05-24T19:51:49+00:00

I have a nav bar application that uses a custom header that I created

  • 0

I have a nav bar application that uses a custom header that I created like this:

@implementation UINavigationBar (Background)

-(void)drawRect:(CGRect)rect{

UIImage *customLogo = [UIImage imageNamed:@"UINavBar.png"];
[customLogo drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];

}

@end

I’m trying to get rid of the title at the top without getting rid of the word showing up in the Navigation Item. These are the variables I have set up in my viewController:

    NSArray *tableDataSource;
NSString *CurrentTitle;
NSInteger CurrentLevel;

Here’s where I think the problem is:

if(CurrentLevel == 0) {

NSArray *tempArray = [[NSArray alloc] init];
self.tableDataSource = tempArray;
[tempArray release];

self.tableDataSource = [self.industryData objectForKey:@"Rows"];
self.navigationItem.title = @"Back";

}
else
    self.navigationItem.title = CurrentTitle;
}

If I set the navigationitem.title = nil, I can no longer back up. Is there a way that I can make the title disappear without losing it in the navigationcontroller?

  • 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-24T19:51:51+00:00Added an answer on May 24, 2026 at 7:51 pm

    If you want the button to say back you are going the wrong way about it.

    You need some code like this placed in the view controller

      UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back"
                                                                 style:UIBarButtonItemStyleBordered
                                                                target:nil
                                                                action:nil];
    
     self.navigationItem.backBarButtonItem = backButton;
     [backButton release]; backButton = nil;
    

    Now when the next page is pushed onto the stack the back button will say back instead of the title of the controller we just came from.

    Now if you want the back button to say the title of the previous view controller but you do not want the title to be displayed across the top when you are currently viewing the view controller. You can simply set the title view to a blank view like this:

    self.navigationItem.titleView = [[UIView alloc] initWithFrame:CGRectZero];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic website nav layout that looks like this: <li class=folder parent_folder>
I would like to have a search box integrated into a nav bar that
In my application, I have a UINavigationController with a UINavigationBar that I created programmatically.
I have a tab bar application that contains navigation views in 2 of its
I have a nav bar with a drop down that is working beautifully. The
I am looking to create a Nav Bar in my Android application that functions
This is related to my last question . I have an application that I
I have a nav bar that when I over over an element the next
I have a nav bar on my site that is currently one color and
I'm going to have a nav bar that lets a user sort through a

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.