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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:45:40+00:00 2026-06-13T12:45:40+00:00

I am making a custom UI for Navigation bar and I have a question

  • 0

I am making a custom UI for Navigation bar and I have a question exactly as asked in this post

Custom background/transparent background on UIBarButtonItem?

In StoryBoard I tried every sort of combination to make my UIbarbuttonitem tint transparent or clear color but I still see this ugly black button (see then + sign). How can I achieve the effect of transparency so that it looks like my button is blended in with the background?

My screenshot

enter image description here

Some other app screenshot. Look how nice this looks?!

enter image description here

Note here the + image is my own custom png img of 20 x 20 pixels with transparent/blank background.

  • 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-13T12:45:40+00:00Added an answer on June 13, 2026 at 12:45 pm

    You can achieve that and more using the new appearance API introduced in iOS 5.

    Basically you set the appearance for your UI once and it gets reflected in the whole program.

    Here is an example for the UIBarButtonItem:

    // You can also use stretchable images
    UIImage *image = [[UIImage imageNamed:@"myCoolBarButton.png"]  resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 5)];
    [[UIBarButtonItem appearance] setBackgroundImage:image forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    

    If you cannot use iOS 5, then you have to build those programmatically like this:

    // Create a custom button with an image
    UIImage *image = [UIImage imageNamed:@"myCoolBarButton.png"];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setImage:image forState:UIControlStateNormal];
    button.frame = CGRectMake(0.0, 0.0, image.size.width, image.size.height);
    
    // Create a custom UIBarButtonItem with the button
    UIBarButtonItem aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
    

    Anyway, here are a few links with good tutorials on the appearance subject

    User Interface Customization in iOS 5

    How To Make Your App Stand Out With The New iOS 5 Appearance API

    EDIT:
    Just for clarification, it is much easier to do with custom images than playing around with colors, gradients and transparency.

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

Sidebar

Related Questions

How do I fix this navigation bar? I tried making it on my own
I have tried and tried to achieve an SQL injection by making custom queries
This is a question on making custom fields in Django. I'm making a field
I have the following code based on this great template for making custom WordPress
I'm making custom events for C# and sometimes it isn't working. This is how
When autoloading libraries, helpers or models, does this also hold true when making custom
I have been developing one application in iPhone and I'm making custom cells for
I tried making custom tags so that uses can enter text that displays something
I am following a tutorial of making custom table view cell with storyboard. I
I tried making a custom command for my terminal. I'm running Mac OS X

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.