Browse files

update README for UIButton helper

  • Loading branch information...
1 parent 583f903 commit be2fa6cd42b730422663d6c069cd69df470d0454 @clayallsopp clayallsopp committed May 9, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0
@@ -113,3 +113,13 @@ Extra methods on `UIView` for working with gesture recognizers. A gesture recogn
There are similar methods for pinched, rotated, swiped, panned, and pressed (for long presses). All of the methods return the actual recognizer object, so it is possible to set the delegate if more fine-grained control is needed.
+## UIButton
+Helper methods to give `UIButton` a Ruby-like interface. Ex:
+button.when(UIControlEventTouchUpInside) do
+ self.view.backgroundColor = UIColor.redColor

0 comments on commit be2fa6c

Please sign in to comment.