# coolbuttons **Repository Path**: mirrors/coolbuttons ## Basic Information - **Project Name**: coolbuttons - **Description**: CoolButtons 是 UIButton 的子类用来绘制玻璃效果的按钮,使用 Core Graphics 开发,无需图片 - **Primary Language**: Objective-C - **License**: MIT - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/coolbuttons - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-02-26 - **Last Updated**: 2025-10-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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.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.