Latest | 0.1.1 |
---|---|
Homepage | https://github.com/erdincakkaya/HZRButton |
License | MIT |
Platforms | ios 7.0, requires ARC |
Authors |
Demo
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Add HZRButtonDelegate to get callback when animation finished,
- (void)animatingButtonDidFinishLoading:(HZRButton *)button
Create button, customize as you want.
HZRButton *button = [[HZRButton alloc]init];
....
....
;
- (void)save:(HZRButton *)sender{
[file saveInBackgroundWithBlock:^(BOOL succeed, NSError *error) {
NSLog(@"upload succeeded");
} progressBlock:^(int percentDone) {
[sender updatePercentage:percentDone]; // keep updating the percentage.
}];
}
// this is called when the loading animation finished.
- (void)animatingButtonDidFinishLoading:(HZRButton *)button{
NSLog(@"loading finished %@", button);
}
Installation
HZRButton is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "HZRButton"
Author
Erdinc Akkaya, [email protected]
License
HZRButton is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "HZRButton", "version": "0.1.1", "summary": "Stylish button with loading indicator.", "homepage": "https://github.com/erdincakkaya/HZRButton", "license": "MIT", "authors": { "Erdinc Akkaya": "[email protected]" }, "source": { "git": "[email protected]:erdincakkaya/HZRButton.git", "tag": "0.1.1" }, "social_media_url": "https://twitter.com/hzroot", "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": "Pod/Classes", "resources": [ "Pod/Assets/**/*.png" ] }
Sat, 05 Mar 2016 07:31:05 +0000