This repository has been archived by the owner on Aug 31, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix formatting - Add blog post link
- Loading branch information
Reda Lemeden
committed
Oct 14, 2012
1 parent
c69dbad
commit 39d4ec2
Showing
2 changed files
with
19 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,13 +1,3 @@ | |||
# Custom UIButton | # Custom UIButton | ||
|
|
||
A demo app showcasing the various methods of customizing a UIButton. Requires Xcode 4.5 and iOS 6. For more deatils, check out the accompanying blog post. | A demo app showcasing the various methods of customizing a UIButton. Requires Xcode 4.5 and iOS 6. For more details, check out the accompanying [blog post](http://robots.thoughtbot.com/post/33427366406/designing-for-ios-taming-uibutton). | ||
|
|||
## modifications by kluivers | |||
|
|||
- CoreGraphics is not used, removed unnecessary `- (void) drawRect:(CGRect)rect` | |||
- no custom event handling, uses `-(void)setHighlighted:(BOOL)highlighted` instead | |||
- disabled implicit animations | |||
|
|||
Initialisation of layers now happens in - (id) initWithCoder:(NSCoder *)decoder, which is called after deserialization from a xib/storyboard. If you want to create the CBLayer in code another initialiser has to be added. | |||
|
|||
Layer creating is kept intact and exactly the same as the original implementation. |