Skip to content

jessmartin/CoolButtons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

81777eb · May 22, 2013

History

30 Commits
Oct 7, 2011
Oct 26, 2011
Apr 15, 2011
Apr 6, 2013
Apr 15, 2011
May 2, 2011
Jul 29, 2011
Apr 29, 2011
Apr 29, 2011
Jun 29, 2011
Jun 29, 2011
Jul 29, 2011

Repository files navigation

CoolButtons

CoolButtons is a subclass of UIButton that draws glassy iOS style buttons, all using CoreGraphics and no images.

Button Comparison

Usage

Add the QuartzCore.framework to your project:

# It should be around here somewhere
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework

Add the CoolButton.m/.h to your project, create an instance of a CoolButton, then set the buttonColor like so.

[myCoolButton setButtonColor:[UIColor blueColor]];

CoolButton takes care of the rest and draws appropriately shaded drop shadows, gradient, inner shadow, and borders.

Todo

  • Fix the border to be an inner glow for more accuracy to the Apple buttons
  • Add additional button customization to turn on/off the various design elements

Copyright

Copyright (c) 2011 Jess Martin. See LICENSE for details.

About

Cool, glassy iOS buttons with only one color to set.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published