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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:13:30+00:00 2026-05-26T04:13:30+00:00

How do I create a custom UIBarButton that changes color when I press it?

  • 0

How do I create a custom UIBarButton that changes color when I press it? Right now using the plain style, it just highlights, but to have a more bolder effect, I want it to change color instead. Any pre-existing solution I can use?

  • 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-26T04:13:31+00:00Added an answer on May 26, 2026 at 4:13 am

    I assume you mention here about UINavigationBarButton. Here what i did and its working perfectly for me. I just tested it again to make sure if it is working or not. And this is working.

    UIImage *buttonImage = [UIImage imageNamed:@"Done.png"];
    UIImage *buttonImage2 = [UIImage imageNamed:@"DoneSelected.png"];
    UIButton *aButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    [aButton setImage:buttonImage forState:UIControlStateNormal];
    [aButton setImage:buttonImage2 forState:UIControlStateSelected];
    [aButton setImage:buttonImage2 forState:UIControlStateHighlighted];
    aButton.frame = CGRectMake(0.0, 0.0, buttonImage.size.width, buttonImage.size.height);
    UIBarButtonItem *aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
    [aButton addTarget:self action:@selector(navigatehome) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.rightBarButtonItem = aBarButtonItem;
    [aBarButtonItem release];
    

    Hope this will help you. Thanks 🙂

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

Sidebar

Related Questions

I have seen that in Cocoa I can create a custom view using drawing
I think I know how to create custom encrypted RSA keys, but how can
Is this the only way to create custom model validation? To do it using
What is the right way to create custom pgsql types for django application so
I am using the CSD tool to create custom configuration sections in my asp.net
I need to create custom pathways using the Google Maps API V3 for a
I've always wanted to create custom components in Java, or customize existing ones, but
It's possible to create custom transform matrices. But I wonder if they are suited
In Excel 2003 I can access the collection Application.CommandBars to create custom toolbars using
I'm using this script http://mondaybynoon.com/2009/02/23/creating-custom-form-elements-using-jquery-selects/ to create custom css select boxes in my page.

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.