Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Cool, glassy iOS buttons with only one color to set.
Objective-C Ruby
Branch: master
Failed to load latest commit information.
CoolButtons.xcodeproj Converted to ARC. Cleaned up the code.
CoolButtons Adding subtle shadown to text label on button to be consistent with o…
.gitignore Initial Commit. Buttons looking pretty decent but needs a click state.
CoolButtons.podspec Adding cocoa pods podspec file
LICENSE Added README and LICENSE
README.md Make sure the QuartzCore framework is in your project
big_giant_fuzzy_icon.png Made big icon - changed the provisioning profile
button_comparison.png Lots of updates:
button_comparison_all.psd Added photoshop file with various buttons for comparison sake.
icon.png
icon@2x.png Adding icon.
interface_mockup.psd Added rotation for touching the MyPic button

README.md

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.

Something went wrong with that request. Please try again.