Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jessesquires/BButton

Twitter Bootstrap buttons for iOS
https://github.com/jessesquires/BButton

Last synced: 3 months ago
JSON representation

Twitter Bootstrap buttons for iOS

Awesome Lists containing this project

README

        

# BButton [![Build Status](https://secure.travis-ci.org/jessesquires/BButton.svg)](http://travis-ci.org/jessesquires/BButton) [![Version Status](https://img.shields.io/cocoapods/v/BButton.svg)][podLink] [![license MIT](https://img.shields.io/cocoapods/l/BButton.svg)][mitLink] [![Platform](https://img.shields.io/cocoapods/p/BButton.svg)][docsLink]

*[Twitter Bootstrap](http://getbootstrap.com) 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](http://getbootstrap.com/2.3.2/) or [version 3](http://getbootstrap.com).

![BButton Screenshot 1][img1]      ![BButton Screenshot 2][img2]

## Requirements

* iOS 6.0+
* ARC

## Installation

````
pod 'BButton'
````
Otherwise, drag the `BButton/` folder to your project.

Then add the `Fonts provided by application` key to `Info.plist` and include `FontAwesome.ttf`

![plist][img3]

## Getting Started

See the demo project (`BButtonDemo.xcodeproj`) and [FontAwesome](http://fontawesome.io) for list of icons.

## Documentation

Documentation is [available here][docsLink] via [CocoaDocs](http://cocoadocs.org). Thanks [@CocoaDocs](https://twitter.com/CocoaDocs)!

## Customization

* Set corner radius for all buttons via `UIAppearance`

````objective-c
[[BButton appearance] setButtonCornerRadius:[NSNumber numberWithFloat:0.0f]];
````

![BButton Screenshot 3][img4]      ![BButton Screenshot 4][img5]

## How To Contribute

Please follow these sweet [contribution guidelines](https://github.com/jessesquires/HowToContribute).

## Credits

Created by [@mattlawer](https://twitter.com/mattlawer) (Original project here: [@mattlawer / BButton](https://github.com/mattlawer/BButton)).

Forked, refactored, updated, maintained by [@jesse_squires](https://twitter.com/jesse_squires).

Many thanks to [the contributors](https://github.com/jessesquires/BButton/graphs/contributors) of this project.

## Apps using this library

* [Gitty for GitHub](https://itunes.apple.com/us/app/gitty-for-github/id645696309?mt=8)
* [Hemoglobe](http://bit.ly/hemoglobeapp)
* [Audiotrip](https://itunes.apple.com/us/app/audiotrip/id569634193?mt=8)
* [iExplorer for DeviantART](https://itunes.apple.com/us/app/iexplorer-for-deviantart/id657212778?mt=8)
* [Travel Delay NYC](https://itunes.apple.com/us/app/train-delay-nyc-subway-status/id384027573?mt=8)
* [Libraries for Developers](https://itunes.apple.com/us/app/libraries-for-developers/id653427112?mt=8)
* [CPU Monitor](https://itunes.apple.com/us/app/cpumonitor/id680137811?mt=8)
* [OpenWatch](https://itunes.apple.com/us/app/openwatch-free-video-streaming/id642680756?mt=8)
* [VSNotes](https://itunes.apple.com/us/app/vsnotes/id695433001?mt=8)
* [Crew Scout](https://itunes.apple.com/us/app/crew-scout/id721124938?mt=8)
* [Chronorea](https://itunes.apple.com/us/app/chronorea-interventions-manager/id813086719?mt=8)
* [MA Mobile](https://itunes.apple.com/us/app/ma-mobile/id447421885?mt=8)

## License

`BButton` is released under an [MIT License][mitLink]. See `LICENSE` for details.

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

## [Font Awesome](http://fortawesome.github.com/Font-Awesome) by Dave Gandy

> The Font Awesome font is licensed under the [SIL Open Font License](http://scripts.sil.org/OFL)
>
> Font Awesome CSS, LESS, and SASS files are licensed under the [MIT License][mitLink]
>
> The Font Awesome pictograms are licensed under the [CC BY 3.0 License](http://creativecommons.org/licenses/by/3.0)

[docsLink]:http://cocoadocs.org/docsets/BButton
[mitLink]:http://opensource.org/licenses/MIT
[podLink]:https://cocoapods.org/pods/BButton

[img1]:https://raw.githubusercontent.com/jessesquires/BButton/master/Screenshots/screenshot0.png
[img2]:https://raw.githubusercontent.com/jessesquires/BButton/master/Screenshots/screenshot1.png

[img3]:https://raw.githubusercontent.com/jessesquires/BButton/master/Screenshots/plistfont.png

[img4]:https://raw.githubusercontent.com/jessesquires/BButton/master/Screenshots/screenshot2.png
[img5]:https://raw.githubusercontent.com/jessesquires/BButton/master/Screenshots/screenshot3.png