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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:35:27+00:00 2026-06-15T08:35:27+00:00

Unfortunately there is no showsTouchWhenHighlighted for UIBarButtonItem and I can’t edit my button from

  • 0

Unfortunately there is no showsTouchWhenHighlighted for UIBarButtonItem and I can’t edit my button from the toolbar…

  • 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-15T08:35:28+00:00Added an answer on June 15, 2026 at 8:35 am

    The property responsible for this is accessible in the UIButton class:

    myButton.showsTouchWhenHighlighted = NO;
    

    You can access this (programmatically) in a UIBarButtonItem by assigning a UIButton to the bar button item’s customView property, and configuring the button. You can do this in Interface Builder too: drag a UIButton onto a UIToolbar, and it will automatically embed it in a UIBarButtonItem for you – then look for the “Shows Touch On Highlight” checkbox under the button’s settings.

    Incidentally, I don’t know how you’re customising your buttons so feel free to ignore this, but if your button looks and behaves like a standard toolbar item then users will expect the glow effect.

    Answer from here

    EDIT:

    Try this then:

    UIImage* buttonImage = [UIImage imageNamed: @"header.navigation.back.png"];     
    UIButton *aButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [aButton setImage:buttonImage forState:UIControlStateNormal];
    aButton.frame =  CGRectMake(0.0, 0.0, buttonImage.size.width/2, 32);
    UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithCustomView:aButton];
    [aButton addTarget:self action:@selector(backToPriorView) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = backButton;
    [backButton release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Delphi 6 is pretty old, I know. Unfortunately there are reasons why I can't
I like to scrap all data from this site . Unfortunately there is a
In App Engine's log, I can see that sometimes there is an error. Unfortunately
I am trying to draw some text with CoreGraphics. Unfortunately there is no method
I have written a Perl script for the following bioinformatics question, but unfortunately there
We run a number of web applications written in PHP. Unfortunately there are some
There is no problem in Xcode, but in Eclipse there is unfortunately. I did
[Update] Unfortunately I never had an opportunity to solve this problem. However, there are
Sorry for this question. There is a lot of information but unfortunately I haven't
The new forms attributes and tags in HTML5 are great. Unfortunately, there is only

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.