Skip to content

skswhwo/CrLoadingButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrLoadingButton

UIButton that include loading state

alt text

Installation

CrLoadingButton is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CrLoadingButton"

And then run:

$ pod install

Usage

- (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;
}

Author

skswhwo, skswhwo@gmail.com

License

CrLoadingButton is available under the MIT license. See the LICENSE file for more info.

About

UIButton that include loading state

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors