Home

Awesome

#BButton 2.0

BButton is a subclass of UIButton that looks like the Twitter Bootstrap 2.3.1 buttons.

Refactored by @jessesquires, April 2013.

Includes @leberwurstsaft / FontAwesome-for-iOS, fixed for iOS from the original FontAwesome.

BButton Screenshot 1      BButton Screenshot 2

Notable changes

Installation

From CocoaPods

pod 'BButton'

From source

<img src="http://imageshack.us/a/img339/9596/bbuttonfontawesomexcode.png">

How To Use

With Storyboards

Create a UIButton and change its class to BButton

<img width=261 src="http://img827.imageshack.us/img827/6596/ibbbutton.png"/>

Under 'User Defined Runtime Attributes' Define At Least Type to a integer of your choice. Other properties can be set this way for additional styling.

<img width="516" height="206" src="http://i.imgur.com/NsarwUS.png"/>

Create programmatically

Initialize with any of the following methods:

- (id)initWithFrame:(CGRect)frame type:(BButtonType)type
- (id)initWithFrame:(CGRect)frame type:(BButtonType)type icon:(FAIcon)icon fontSize:(CGFloat)fontSize
- (id)initWithFrame:(CGRect)frame color:(UIColor *)aColor
- (id)initWithFrame:(CGRect)frame color:(UIColor *)aColor icon:(FAIcon)icon fontSize:(CGFloat)fontSize
+ (BButton *)awesomeButtonWithOnlyIcon:(FAIcon)icon type:(BButtonType)type
+ (BButton *)awesomeButtonWithOnlyIcon:(FAIcon)icon color:(UIColor *)color

See the included demo project BButtonDemo.xcodeproj

See FontAwesomeIcons.html for list of icons

Apps Using This Control

Hemoglobe

iPaint uPaint

Audiotrip

Contact me to have your app listed here.

##BButton License

MIT License

Copyright (c) 2013 Mathieu Bolard

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

##Contact

mattlawer08@gmail.com<br /> http://mathieubolard.com<br /> http://twitter.com/mattlawer