Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update README for UIButton helper

  • Loading branch information...
commit be2fa6cd42b730422663d6c069cd69df470d0454 1 parent 583f903
@clayallsopp clayallsopp authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -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:
+
+```ruby
+button.when(UIControlEventTouchUpInside) do
+ self.view.backgroundColor = UIColor.redColor
+end
+```
Please sign in to comment.
Something went wrong with that request. Please try again.