So it’s been a while since our last shiny buttons post — and why yes, yes it’s time for an update; here’s a piece of code that looks like our new goto library for the shiny thing:
iPhone Glossy Buttons
The two points I was after was the “rounded” gloss on the top, and the neat highlights at the top and bottom to give the button the appearence of being inset in in the surface and rising above it.
So I looked everywhere on the net for code for such a button, without success … Anyway, I had to come out with my own code, and this meant understanding how Core Graphics does clipping – not a small thing!
Now that’s some nicely done shininess, indeed. Definitely looks like we’ll be adopting that.
Custom shapes, borders, and gradients: waterlou / UIGlossyButton!