Twitter Bootstrap buttons for iOS.
BButton
is a subclass of UIButton
that is styled like the Twitter Bootstrap buttons, and is drawn entirely with CoreGraphics
. Buttons can be styled as Bootstrap version 2 or version 3.
- iOS 6.0+
- ARC
pod 'BButton'
Otherwise, drag the BButton/
folder to your project and add the Fonts provided by application
key to Info.plist
and include FontAwesome.ttf
- Create programmatically via one of the
init
methods - Create via Storyboards
- Drag a
UIButton
to your view - Set its class to
BButton
- Be a badass programming-motherfucker and read the fucking documentation.
- See the included demo project:
BButtonDemo.xcodeproj
- See FontAwesome for list of icons
Documentation is available here via CocoaDocs. Thanks @CocoaDocs!
- Set corner radius for all buttons via
UIAppearance
[[BButton appearance] setButtonCornerRadius:[NSNumber numberWithFloat:0.0f]];
Please follow these sweet contribution guidelines.
Created by @mattlawer (Original project here: @mattlawer / BButton).
Forked, refactored, updated, maintained by @jesse_squires, a programming-motherfucker.
Many thanks to the contributors of this project.
- Gitty for GitHub
- Hemoglobe
- Audiotrip
- iExplorer for DeviantART
- Travel Delay NYC
- Libraries for Developers
- CPU Monitor
- OpenWatch
- VSNotes
- Crew Scout
BButton
is released under an MIT License. See LICENSE
for details.
Copyright © 2012, Mathieu Bolard, Jesse Squires. All rights reserved.
FontAwesome License
- The Font Awesome font is licensed under the SIL Open Font License
- Font Awesome CSS, LESS, and SASS files are licensed under the MIT > License
- The Font Awesome pictograms are licensed under the CC BY 3.0 License
- Attribution is no longer required in Font Awesome 3.0, but much appreciated: * "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome"