Skip to content
This repository was archived by the owner on Jan 31, 2018. It is now read-only.

joshpc/JTFlatButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JTFlatButton

A quick and dirty "flat" (but somewhat bouncy!) button. MIT license, Safety not Guaranteed.

Screenshot

Screenshot of Button

How to use

Files

  1. You only need the JTFlatButton.h and JTFlatButton.m files. Copy them into your project.

Code

	JTFlatButton *button = [JTFlatButton flatButton];
	
	//This is the colour of the button
	button.buttonColor = [UIColor colorWithRed:0.353 green:0.635 blue:0.843 alpha:1];
	
	//This is the side of the button
	button.sideColor = [UIColor colorWithRed:0.318 green:0.494 blue:0.686 alpha:1];
	button.frame = CGRectMake(100, 100, 200, 60);
	
	//This is how tall the button is
	button.depth = 3.0f;
	
	//This is how round the button is
	button.cornerRadius = 6.0f;
	[button setTitle:@"Le Button" forState:UIControlStateNormal];

About

A quick and dirty "flat" (but somewhat bouncy!) button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published