Skip to content

Commit

Permalink
Merge pull request Grouper#154 from pronebird/readme-fuitextfield-update
Browse files Browse the repository at this point in the history
Add FUITextField notes to README
  • Loading branch information
jamieomatthews committed Jan 15, 2015
2 parents 2cdfe06 + c9b498d commit c62ce62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Binary file added Example/README images/fuitextfield-small.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ myButton.titleLabel.font = [UIFont boldFlatFontOfSize:16];
![FUIButton](https://raw.github.com/Grouper/FlatUIKit/master/Example/README%20images/fuibutton-small.gif)
### TextFields
FUITextField is a drop-in subclass of UITextField that exposes the additional properties edgeInsets, textFieldColor, borderColor, borderWidth and cornerRadius. Note that if you set any of these, you have to set all of them.
```objective-c
myTextField.font = [UIFont flatFontOfSize:16];
myTextField.backgroundColor = [UIColor clearColor];
myTextField.edgeInsets = UIEdgeInsetsMake(4.0f, 15.0f, 4.0f, 15.0f);
myTextField.textFieldColor = [UIColor whiteColor];
myTextField.borderColor = [UIColor turquoiseColor];
myTextField.borderWidth = 2.0f;
myTextField.cornerRadius = 3.0f;
```

![FUITextField](Example/README%20images/fuitextfield-small.gif)

### SegmentedControls

FUISegmentedControl is a drop-in subclass of UISegmentedControl that exposes the additional properties selectedColor, deselectedColor, selectedFont, deselectedFont, selectedFontColor, deselectedFontColor, dividerColor and cornerRadius. Note that if you set any of these, it is recommended that you set all of them.
Expand Down

0 comments on commit c62ce62

Please sign in to comment.