Skip to content

Commit 41fe139

Browse files
committed
Added delegate section
1 parent b2807fb commit 41fe139

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* [**Documentation**](#documentation)
2222
* [Enabling / Disabling the Checkbox](#enabling--disabling-the-checkbox)
2323
* [Reloading](#reloading)
24+
* [Delegate] (#delegate)
2425
* [Customization](#customization)
2526

2627
## Project Details
@@ -101,6 +102,15 @@ Example usage:
101102
[self.myCheckBox reload]
102103
```
103104

105+
### Delegate
106+
**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:
107+
108+
- `didTapCheckBox:`
109+
Sent to the delegate every time the check box gets tapped, after its properties are updated (on), but before the animations are completed.
110+
111+
- `animationDidStopForCheckBox:`
112+
Sent to the delegate every time the check box finishes being animated.
113+
104114
### Customization
105115
**BEMCheckBox** is exclusively customizable though properties.
106116
The following diagram provides a good overview:

0 commit comments

Comments
 (0)