Rewrote CALayer based implementation #1

Merged
merged 3 commits into from Oct 14, 2012

Projects

None yet

2 participants

@kluivers
Contributor

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.

@kaishin kaishin merged commit c69dbad into kaishin:master Oct 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment