If I insert a UIButton inside a UIBarButtonItem to place it on the toolbar, it discards the animation effect when I click it.
UIButton
UIBarButtonItem
iOS 7 by default has a nice animating effect when you click on UIBarButtonItem . It fades slightly to a lighter color.
How can I save this with joy even on custom UIBarButtonItem with background images?
I had the same problem when I created several rightbarbuttonitems with a custom UIView and image. I solved my problem using the showsTouchWhenHighlighted property.
showsTouchWhenHighlighted
yourCustomButton.showsTouchWhenHighlighted = YES;
Source: https://habr.com/ru/post/955309/More articles:Saving only certain rows of a data frame based on a set of values - rAndroid: How to properly link my own static libraries? - c ++WARNING: ... / Android.mk: non-system libraries in linker flags - c ++Casting a dynamic object to a type known only at run time - c #Is it safe to input the iterator and output the iterator to std :: transform from one container? - c ++How to get Android phone number via adb? - androidHow to generate methods in jmh tests? - benchmarkingRead .mobileprovisioning profile with Objective-C - objective-cSharing a small amount of data between applications - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/955314/how-to-convert-ndata-populated-with-hex-values-to-nsstring&usg=ALkJrhi31ZyVy5XrOOmKC_wollgHDnf6IAAll Articles