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.

BButton Screenshot 1      BButton Screenshot 2

Features

Requirements

  • iOS 6.0+
  • ARC

Installation

pod 'BButton'

From source

  • Drag the BButton/ folder to your project.
  • Add the Fonts provided by application key to Info.plist and include FontAwesome.ttf

plist

Too cool for ARC?

  • Add the -fobjc-arc compiler flag to all source files in your project in Target Settings > Build Phases > Compile Sources.

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. (Yes, there's documentation! Seriously!)
  2. See the included demo project: BButtonDemo.xcodeproj
  3. See FontAwesomeIcons.html 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

  • More tips coming soon!

How To Contribute

  1. Find an issue to work on, or create a new one
  2. Fork me
  3. Create a new branch with a sweet fucking name: git checkout -b issue_<##>_<featureOrFix>
  4. Do some motherfucking programming
  5. Write unit tests, if possible
  6. Keep your code nice and clean by adhering to the following standards:
  7. Don't break shit, like unit tests
  8. Update the documentation header comments, if needed
  9. Merge the latest from develop and resolve any conflicts (before submitting a pull request!)
  10. Submit a pull request to the develop branch

Credits

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.

Apps Using This Control

Gitty for GitHub

Hemoglobe

iPaint uPaint

Audiotrip

iExplorer for DeviantART

Travel Delay NYC

Libraries for Developers

CPU Monitor

OpenWatch

VSNotes

Crew Scout

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

Bitdeli Badge