This is a simple glass-effect UIButton subclass, implemented entirely using CoreGraphics. It’s probably not up to the sort of fidelity you can get with a stretched image (and a good illustrator), but it should serve for a nice introduction to the relevant techniques: paths, gradients, and colors.

**Update:** There’s an image of the default button on this followup post.

8 months ago on June 30th, 2009 at 9:25 pm | Permalink