Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

BButton is a subclass of UIButton that looks like the bootstrap buttons.

License

NotificationsYou must be signed in to change notification settings

mattlawer/BButton

Repository files navigation

#BButton 2.0

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

Refactored by@jessesquires, April 2013.

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

BButton Screenshot 1     BButton Screenshot 2

Notable changes

  • Up-to-date for iOS 5.0+, ARC, Storyboards
  • Custom initialization methods for easier creation
  • Option to show button 'disabled' state
  • New button type options
  • FontAwesome already included
  • Refactored to be much cleaner, better organized

Installation

pod 'BButton'

From source

  • Drag theBButton/ folder to your project (make sure you copy all files/folders)
  • #import "BButton.h"
  • AddFonts provided by application key toInfo.plist and includeFontAwesome.ttf

How To Use

With Storyboards

Create aUIButton and change its class toBButton

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.

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 projectBButtonDemo.xcodeproj

SeeFontAwesomeIcons.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 copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 INTHE SOFTWARE.

##FontAwesome License

##Contact

mattlawer08@gmail.com
http://mathieubolard.com
http://twitter.com/mattlawer

About

BButton is a subclass of UIButton that looks like the bootstrap buttons.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp