Skip to content

StudistCorporation/BButton

Repository files navigation

BButton Build Status Version Status license MIT

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.

BButton Screenshot 1      BButton Screenshot 2

Requirements

  • iOS 6.0+
  • ARC

Installation

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

plist

Getting Started

  1. Create programmatically via one of the init methods
  2. Create via Storyboards
  • Drag a UIButton to your view
  • Set its class to BButton
  1. Be a badass programming-motherfucker and read the fucking documentation.
  2. See the included demo project: BButtonDemo.xcodeproj
  3. See FontAwesome for list of icons

Documentation

Documentation is available here via CocoaDocs. Thanks @CocoaDocs!

Customization

  • Set corner radius for all buttons via UIAppearance
[[BButton appearance] setButtonCornerRadius:[NSNumber numberWithFloat:0.0f]];

BButton Screenshot 3      BButton Screenshot 4

How To Contribute

Please follow these sweet contribution guidelines.

Credits

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.

Apps Using This Control

License

BButton is released under an MIT License. See LICENSE for details.

Copyright © 2012, Mathieu Bolard, Jesse Squires. All rights reserved.

FontAwesome License