Skip to content

Commit

Permalink
Added delegate section
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris-Em committed Oct 17, 2015
1 parent b2807fb commit 41fe139
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -21,6 +21,7 @@
* [**Documentation**](#documentation)
* [Enabling / Disabling the Checkbox](#enabling--disabling-the-checkbox)
* [Reloading](#reloading)
* [Delegate] (#delegate)
* [Customization](#customization)

## Project Details
Expand Down Expand Up @@ -101,6 +102,15 @@ Example usage:
[self.myCheckBox reload]
```

### Delegate
**BEMCheckBox** uses a delegate to receive check box events. The delegate object must conform to the `BEMCheckBoxDelegate` protocol, which is composed of two optional methods:

- `didTapCheckBox:`
Sent to the delegate every time the check box gets tapped, after its properties are updated (on), but before the animations are completed.

- `animationDidStopForCheckBox:`
Sent to the delegate every time the check box finishes being animated.

### Customization
**BEMCheckBox** is exclusively customizable though properties.
The following diagram provides a good overview:
Expand Down

0 comments on commit 41fe139

Please sign in to comment.