Permalink
Browse files

Updated readme file

  • Loading branch information...
1 parent 0a2054a commit 7fc1ff7a3636c2f35f0cc3cfb1418728a7b517f9 @kluivers kluivers committed Oct 13, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
@@ -1,3 +1,13 @@
# 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.
+
+## 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.

0 comments on commit 7fc1ff7

Please sign in to comment.