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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:23:17+00:00 2026-05-28T07:23:17+00:00

I have a navigation bar with three buttons on the right (arrows for navigation

  • 0

I have a navigation bar with three buttons on the right (arrows for navigation + a sharing button). On the Iphone simulator I can see them well and they are working perfect. When I installed the app on a real Iphone 4 device the buttons are not shown at all!!!
(my simulator is IPhone 3, if it metter).
My code is:

UIToolbar *tools = [[UIToolbar alloc]
                    initWithFrame:CGRectMake(0, 0, 70.0f,     44.01f)]; // 44.01 shifts it up 1px for some reason
tools.clearsContextBeforeDrawing = NO;
tools.clipsToBounds = NO;
tools.tintColor = [UIColor colorWithWhite:0.305f alpha:0.0f]; // closest I could get by eye to black, translucent style.
// anyone know how to get it perfect?
tools.barStyle = -1; // clear background


NSMutableArray *buttons = [[NSMutableArray alloc] initWithCapacity:3];

// Create a standard refresh button.
UIBarButtonItem *bi = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"share.png"] style:UIBarButtonItemStylePlain target:self action:@selector(shareClicked)];
//initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(refresh:)];
[buttons addObject:bi];
[bi release];

// Create a spacer.
bi = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"scroll left.png"] style:UIBarButtonItemStylePlain target:self action:@selector(upClicked)];
//bi.width = 12.0f;
[buttons addObject:bi];
[bi release];

// Add profile button.
bi = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"scroll right.png"] style:UIBarButtonItemStylePlain target:self action:@selector(downClicked)];
//bi.style = UIBarButtonItemStyleBordered;
[buttons addObject:bi];
[bi release];

// Add buttons to toolbar and toolbar to nav bar.
[tools setItems:buttons animated:NO];
[buttons release];
UIBarButtonItem *twoButtons = [[UIBarButtonItem alloc] initWithCustomView:tools];
[tools release];
self.navigationItem.rightBarButtonItem = twoButtons;
[twoButtons release];
  • 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-28T07:23:18+00:00Added an answer on May 28, 2026 at 7:23 am

    I had a similar issue.

    In my case the .png file was erased from the project and from the project’s working directory – for some reason. Consequentally it was not included in the Copy Bundle Resources anymore.

    Strange, though, apparently it was still on the simulator. In my case it was even still on the debug device. But when building a boulde for ad-hoc distribution it was not in. As a result the full button (bar button item in the navigation bar) did not appear. Users were unable to invoke the action associated with it.

    First I erased the app from the simulator. I tried both, erasing it from the simulator’s gui and from the file system /Users//Library/Application Support/iPhone Simulator/5.0/Applications/(app id)/… . In both cases running the app on the simulatore re-installed the unused .png file and a number of other files that were intentionally deleted from my xcode project.

    However, the final solution was to include the png file again in the xcode project and assign it to all relevant targets. In my case I was about to change the graphic anyway so I included the new file instead of the old one. But I am sure that this detail does not matter much.

    Short version: 1. If your png file is still part of the project, then delete it. Delete ist from the project folder too, just to be save. 2. Re-include the png file to the project. 3. Create your build and try it on an empty device.

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

Sidebar

Related Questions

I have a button as the right button on my navigation bar: UIBarButtonItem *addButton
What is the best way to have the right navigation bar button flip like
Dear all I have implemented two buttons in the navigation bar on the right
I have a UIView with a navigation bar. How can I hide the navigation
I wanted to have two buttons on the both end of Navigation Bar (in
I have a CSS-sprite-based Apple-themed navigation bar, which you can view here: http://www.marioplanet.com/index.asp Now,
I have a navigation bar that has two dropdowns (as nested ul's). I'm trying
If have a Navigation Bar and a Tab Bar in one of my views.
Imagine I have a navigation bar in my page header, with a number of
I have created a flexible navigation bar in my app that will show custom

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.