• This repository has been archived on 06/Apr/2020
  • Stars
    star
    266
  • Rank 154,103 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 12 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Flat-Style Button

QBFlatButton

Flat-Style Button

Installation

QBFlatButton can be installed with CocoaPods.

pod 'QBFlatButton'

Or clone this repository and include QBFlatButton.h in your project manually.

ScreenShot

screenshot.png

Properties

faceColor

A surface color of the button.

@property (nonatomic, strong) UIColor *faceColor

sideColor

A side color of the button.

@property (nonatomic, strong) UIColor *sideColor

borderColor

A border color of the button.

@property (nonatomic, strong) UIColor *borderColor

cornerRadius

A corner radius of the button.

@property (nonatomic, assign) CGFloat cornerRadius

height

A button height in normal state.

@property (nonatomic, assign) CGFloat height

depth

A button depth when the button pushed down.

@property (nonatomic, assign) CGFloat depth

borderWidth

A border width of the button.

@property (nonatomic, assign) CGFloat borderWidth

Example

QBFlatButton *button = [QBFlatButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(90, 200, 140, 50);

button.surfaceColor = [UIColor colorWithRed:0.333 green:0.631 blue:0.851 alpha:1.0];
button.sideColor = [UIColor colorWithRed:0.310 green:0.498 blue:0.702 alpha:1.0];
button.borderColor = [UIColor colorWithRed:0.310 green:0.498 blue:0.702 alpha:1.0];

button.cornerRadius = 6.0;
button.height = 4.0;
button.depth = 3.0;

button.titleLabel.font = [UIFont boldSystemFontOfSize:16.0];
[button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[button setTitle:@"QBFlatButton" forState:UIControlStateNormal];

[self.view addSubview:button];

License

QBFlatButton is released under the MIT License, see LICENSE.txt.

More Repositories

1

QBImagePicker

A clone of UIImagePickerController with multiple selection support.
Objective-C
1,777
star
2

QBPopupMenu

Customizable popup menu for iOS.
Objective-C
1,382
star
3

Lin

Xcode plugin that provides auto-completion for NSLocalizedString.
Objective-C
1,225
star
4

Lin-Xcode5

A Localization Manager for Xcode 5
Objective-C
968
star
5

PopHub-Electron

GitHub activity & notification viewer. Made with Electron.
JavaScript
58
star
6

QBRefreshControl

An abstract base class for creating a refresh control.
Objective-C
56
star
7

QBAnimationSequence

UIView Animation Sequencer
Objective-C
51
star
8

CacheKit

LRU on-memory/disk cache for Swift
Swift
34
star
9

QBValidator

A library for validating values easily.
Objective-C
28
star
10

QBTitleView

Title label and image view for 'titleView' property of UINavigationItem
Objective-C
15
star
11

SlideMenu

View controller container which provides the sliding menus.
Swift
10
star
12

Categories

Objective-C Categories
Objective-C
9
star
13

QBStatusItemView

Custom status item view that can be highlighted programmatically.
Objective-C
9
star
14

PageMenu

View controller container which provides the paged views with menus.
Swift
8
star
15

LiveTeX

PDF Previewer for TeX writing.
Swift
6
star
16

GitHubStatus

A today widget that displays GitHub Service Status
Swift
5
star
17

LaunchAtLoginExample

Code examples of launch at login implementation.
Objective-C
5
star
18

scrapboard

Sticky Notes for Scrapbox
TypeScript
5
star
19

MilkCocoa

A better way to drink Cocoa.
Objective-C
4
star
20

UICollectionViewTrackingDisplayDelegate

UICollectionView+willDisplayCell
Objective-C
4
star
21

XcodeCrasher

Kill Xcode
Objective-C
4
star
22

QBTokenField

Objective-C
4
star
23

kdtree

kdtree module for C++
C++
4
star
24

dotfiles

dotfiles
Shell
4
star
25

LINEActivity

UIActivity subclass for sharing text, URL and image via LINE.
Objective-C
3
star
26

QBSpringButton

UIButton subclass with attractive bounce animation.
Objective-C
3
star
27

anchor

Tab switcher for Google Chrome.
TypeScript
3
star
28

PlugInSample

Objective-C
3
star
29

XcodeBuildSound

Xcode plug-in that plays a random sound when you have a compile error.
Objective-C
3
star
30

CrashReporter

Tweet when Xcode died
Swift
2
star
31

QBRateLimit

Rate limit controller.
Objective-C
2
star
32

capistrano-mackerel

Mackerel integration for Capistrano v3.
Ruby
2
star
33

QBUserDefaults

Objective-C
2
star
34

QBFeedback

QBFeedback is the library for getting feedbacks from the users easily.
Objective-C
2
star
35

PopHubSupport

PopHub issue tracker.
2
star
36

ConvertMovToMpeg

Objective-C
1
star
37

PocketActivity

UIActivity subclass for saving URL to Pocket.
Objective-C
1
star
38

XcodeBackgroundImage

Display a image behind the source text view in Xcode.
Objective-C
1
star
39

ShortMenu

Xcode plug-in which shortens menu titles.
Swift
1
star
40

RateLimit

A rate limit controller for preventing excessive actions.
Swift
1
star
41

KVCCollectionOperatorsExample

Code examples of KVC Collection Operators
Objective-C
1
star