Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
William Archimede committed Sep 9, 2014
1 parent 3e476a0 commit 8d14a71
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ A simple range slider made in Swift.
This control uses the **target-action** pattern for change notifications.

In order to be notified when either thumb value changes, register for **.ValueChanged**:
`let rangeSlider = RangeSlider(frame: frame)
rangeSlider.addTarget(self, action: "rangeSliderValueChanged:",
forControlEvents: .ValueChanged)`

let rangeSlider = RangeSlider(frame: frame)
view.addSubView(rangeSlider)
rangeSlider.addTarget(self, action: "rangeSliderValueChanged:",
forControlEvents: .ValueChanged)

# License
This control was made available under the MIT License
Expand Down

0 comments on commit 8d14a71

Please sign in to comment.