kaishin/custom-UIButton — pull request #1 by kluivers (2012-10-13 11:50:17+00:00)
Title: Rewrote CALayer based implementation

Changes three things:

- `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 file.