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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:49:21+00:00 2026-05-30T22:49:21+00:00

When you tap on a UIBarButtonItem in a UIToolbar , there is a white

  • 0

When you tap on a UIBarButtonItem in a UIToolbar, there is a white glow effect.

Is there a possibility to fire an event to show this effect?

I don’t want to press the button. Only the effect should be displayed. I want to visualize to the user, that there is new content behind this button.

Thanks for your help!

  • 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-30T22:49:22+00:00Added an answer on May 30, 2026 at 10:49 pm

    The following method assumes you are using the toolbarItems property of a navigation controller and that the button you want to highlight is the last item in that array. You can apply it to any toolbar, of course, and pick a different array index if necessary.

    Right now this is not exactly perfect, because the animation moves the new button from the lower left of the screen. However, I think that can be turned off with a little effort.

    Note that I used PeakJi’s image.

    I hope this works for you.

    Enjoy,

    Damien

    - (void)highlightButton {
        NSArray *originalFooterItems = self.toolbarItems;
        NSMutableArray *footerItems = [originalFooterItems mutableCopy];
        [footerItems removeLastObject];
    
        NSString* pathToImageFile = [[NSBundle mainBundle] pathForResource:@"white_glow" ofType:@"png"];
        UIImage* anImage = [UIImage imageWithContentsOfFile:pathToImageFile];
        UIImageView *imageView = [[UIImageView alloc] initWithImage:anImage];
        imageView.frame = CGRectMake(0, 0, 40, 40);
    
        UIBarButtonItem *flashImage = [[UIBarButtonItem alloc] initWithCustomView:imageView];
        [footerItems addObject:flashImage];
    
        [UIView animateWithDuration:0.3
                              delay: 0.0
                            options: UIViewAnimationOptionCurveEaseOut
                         animations:^{
                             self.toolbarItems = footerItems;                     }
                         completion:^(BOOL finished){
                             [UIView animateWithDuration:.3
                                                   delay: 0.0
                                                 options:UIViewAnimationOptionCurveEaseIn
                                              animations:^{
                                                  self.toolbarItems = originalFooterItems;
                                              }
                                              completion:nil];
                         }];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an event that I can tap into in Global.asax to execute some
Is there an API to tap to Apple's Bonjour service (I'm planning to share
I have a situation in which user can single tap a control, which show
Is there a complete list of the objects you can tap into with <%$
I have a tap counter and this is the Who Wins code. The app
I currently have this in my code tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(updateLeftLabel:)]; which
I want to tap a control on the screen and have the ListView scroll
If I tap [space][space]test in a textarea the space won't show when it's output(space
There is double tap to zoom / pinch to zoom ImageView (ImageViewTouch) from here
i want to create a button that allows the user to tap on it

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.