TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2015 |
Maintained by Ricky Tan.
This project is inspired by Mobile QQ, a drag to clear badge view.
To run the example project, clone the repo, and run pod install
from the Example directory first.
[self.button rt_setBadge:@"new"
withHandle:^(RTDraggableBadge *badge, RTDragState state) {
if (state == RTDragStateDragged) {
badge.text = @"n";
}
}];
RTDraggableBadge *badge = [RTDraggableBadge badgeWithDragHandle:^(RTDraggableBadge *badge, RTDragState state) {
if (state == RTDragStateDragged) {
// do clear your badge number
}
}];
See the demo below:
RTDraggableBadge is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RTDraggableBadge"
RTDraggableBadge is available under the MIT license. See the LICENSE file for more info.