UIButton that include loading state
CrLoadingButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CrLoadingButton"
And then run:
$ pod install
- (void)addButton
{
button.hideButtonWhenActive = true;
[button setDidSelect:^(CrLoadingButton *button) {
button.active = true;
[self performSelector:@selector(endButton:) withObject:button afterDelay:1];
}];
}
- (void)endButton:(CrLoadingButton *)button
{
button.active = false;
}skswhwo, skswhwo@gmail.com
CrLoadingButton is available under the MIT license. See the LICENSE file for more info.
