Facebook Icon/Button Glowing in iOS App
facebook, ios, uinavigationbar
Solution
`UIButton` has a property called `showsTouchWhenHighlighted`. When you set this to true, it puts that glow whenever you tap it.
For some reason it goes behind the icon when you use it as a custom view of a `UIBarButtonItem` in a `UIToolbar` or a `UINavigationBar` (contrary to if you simply set the image of the `UIBarButtonItem`).
Problem
Does anyone know/have a guess as to how facebook implemented the glowing of the icon when a user taps the icon? (You can see what I mean below) It seems to me that they implemented at least part of it programmatically as the glowing actually spills over on the icon next to it. Has anyone done this or have pointers where to start? It does not seem to spill out of the UINavigationBar, however. PS. I do know how to make the icons up on the navigation bar, just not sure how to implement the glowing...