Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jessmartin/coolbuttons
Cool, glassy iOS buttons with only one color to set.
https://github.com/jessmartin/coolbuttons
Last synced: 11 days ago
JSON representation
Cool, glassy iOS buttons with only one color to set.
- Host: GitHub
- URL: https://github.com/jessmartin/coolbuttons
- Owner: jessmartin
- License: mit
- Created: 2011-04-15T21:05:30.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-05-22T03:57:37.000Z (over 11 years ago)
- Last Synced: 2025-01-09T20:00:33.800Z (15 days ago)
- Language: Objective-C
- Homepage: http://jessmart.in
- Size: 2.01 MB
- Stars: 162
- Watchers: 7
- Forks: 24
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CoolButtons
================================CoolButtons is a subclass of UIButton that draws glassy iOS style
buttons, all using CoreGraphics and no images.![Button Comparison](https://github.com/jessmartin/CoolButtons/raw/master/button_comparison.png)
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.frameworkAdd 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
elementsCopyright
--------------------------------
Copyright (c) 2011 Jess Martin. See LICENSE for details.