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
.
- Works just like
UIButton
, but sexier - Bootstrap version 2 or version 3 styles
- Highly customizable
- Includes @leberwurstsaft / FontAwesome-for-iOS, fixed for iOS from the original FontAwesome
- iOS 6.0+
- ARC
From CocoaPods
pod 'BButton'
- Drag the
BButton/
folder to your project. - Add the
Fonts provided by application
key toInfo.plist
and includeFontAwesome.ttf
Too cool for ARC?
- Add the
-fobjc-arc
compiler flag to all source files in your project in Target Settings > Build Phases > Compile Sources.
- 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. (Yes, there's documentation! Seriously!)
- See the included demo project:
BButtonDemo.xcodeproj
- See
FontAwesomeIcons.html
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]];
- More tips coming soon!
- Find an issue to work on, or create a new one
- Fork me
- Create a new branch with a sweet fucking name:
git checkout -b issue_<##>_<featureOrFix>
- Do some motherfucking programming
- Write unit tests, if possible
- Keep your code nice and clean by adhering to the following standards:
- Google's Objective-C Style Guide
- Apple's Coding Guidelines for Cocoa
- Don't break shit, like unit tests
- Update the documentation header comments, if needed
- Merge the latest from
develop
and resolve any conflicts (before submitting a pull request!) - Submit a pull request to the
develop
branch
Created by @Mathieu Bolard (Original project here: @mattlawer / BButton).
Forked, refactored, updated, maintained by @Jesse Squires, a programming-motherfucker.
FontAwesome-for-iOS by Pit Garbe, @leberwurstsaft / FontAwesome-for-iOS.
Many thanks to the contributors of this project.
Contact me to have your app listed here.
Copyright © 2012, Mathieu Bolard, Jesse Squires. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
##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"