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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:12:26+00:00 2026-05-20T05:12:26+00:00

I am trying to use my own custom image to represent my toolbar buttons,

  • 0

I am trying to use my own custom image to represent my toolbar buttons, however, whenever I set the image (a png image) as the toolbar button’s image, it just displays as a white box the size of the image on my button.

Programmatically I tried this:

bestButton.image = [UIImage imageNamed:@"best_off.png"];

Where bestButton is a UIBarButtonItem declared and set as a property and IBOutlet.

However, this also just displays a white box where the button should be.

To check if the image is bonked, I tried this code:

self.navigationItem.titleView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"best_off.png"]]autorelease];

Which correctly sets my titleview in the navigation bar to show the image perfectly.

Can anyone help identify why this, and all my other images just show as white boxes when put in the bar button’s image?

  • 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-20T05:12:27+00:00Added an answer on May 20, 2026 at 5:12 am

    The images used in toolbars are never displayed. They are used as a mask (the alpha channel I believe). Try this. Create an icon (png) with transparent background. Where ever you have a pixel set, it will be white in your icon displayed in the toolbar.

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

Sidebar

Related Questions

I'm trying to use the Asp.Net Telerik RadDataPager with my own server side custom
I'm trying to set custom images for next / prev month buttons. I tried
I am trying to set my own custom error message onto my Captcha but
I am trying to use my own function to get the file size from
I'm trying to use my own database in an Android application. Most all the
I am new to Gradle, and I am trying to use my very-own-and-beauty doclet
I am trying to use geo-tagging with my own camera application. What I am
I'm trying to write a code library for my own personal use and I'm
I'm trying to link the LizardTech GeoExpress DSDK into my own application. I use
I was trying use a set of filter functions to run the appropriate routine,

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.