How would one remove the shadow of an icon on a UIBarButtonItem on a UIToolbar?
Here’s an image of what I mean:

Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
That is the standard way that a
UIBarButtonItemis rendered when you use one of the system items to create the button.If you want a different appearance, you need to use your own image and a
UIButton. The create theUIBarButtonItemwith theinitWithCustomView:method. You will lose the “glow” effect when you do this. To get it back you need to set theshowsTouchWhenHighlightedproperty of theUIButton.