Skip to content

Commit

Permalink
Updated readme with documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fmscode committed Apr 15, 2014
1 parent 8eadaf7 commit ff108e9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# BorderButton
Subclass of UIButton that gives a colored border around a UIButton. The subclass takes the ```textColor``` attribute and creates a border with that color. When a user presses the button, it will change to be filled with the border color creating a solid color button.

![](readmeassets/screenshot2.png)

# Basic Usage
To give a button a colored border set the class of the UIButton to ```BorderButton``` in your Storyboard or nib.

![](readmeassets/screenshot1.png)

If the buttons width and height are equal the class will add a circular border around the buttons frame. If the width and height are not equal, the border will be a rectangle with rounded edges.
Binary file added readmeassets/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readmeassets/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ff108e9

Please sign in to comment.