Hwee-Boon’s posterous

Links, braindumps, photos 
« Back to blog

Glass Buttons in iPhone Apps Without Using Image Files

For folks who want to create glass buttons in iPhone apps without using private APIs and image files.

From the README:

Uses public APIs to create native-looking glass buttons. No image files used. Buttons can be created in IB (and configured programmatically) or fully by code.

  • Include Quartz Core framework.
  • Add Global.h, MOButton.h/.m, MOGlassButton.h/.m
  • See demo project.

 

Comments (3)

Jul 13, 2010
Cool. This only thing that seems to be missing is instructions on how to change the provided button colours to something else... Can you provide more details?
Jul 13, 2010
Hwee-Boon Yar said...
See how it's done in -setupAsGreenButton.
Sep 04, 2010
Chandra said...
Wow!. It is really a component. Good job!

Leave a comment...