Used in Zee - Personal Finances.
An easy-to-use UIButton subclass with an activity indicator.
The activity state is configurable and can hide the image or text while the activity indicator is displaying . You can Also choose the position of easily activity indicator or Set It up with a spacing.
iOS 5
RNLoadingButton is available through CocoaPods, to install it simply add the following line to your Podfile:
pod 'RNLoadingButton', '~> 0.0.1'
To run the example project; clone the repo, and open the demo project
btnLeftLoading.hideTextWhenLoading = NO;
btnLeftLoading.loading = YES;
[btnLeftLoading setActivityIndicatorAlignment:(RNLoadingButtonAlignmentLeft)];
[btnLeftLoading setActivityIndicatorStyle:(UIActivityIndicatorViewStyleGray) forState:(UIControlStateDisabled)];
// btnFacebook.activityIndicatorEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 10);
Romilson Nunes, souzainf3@yahoo.com.br
RNLoadingButton is available under the MIT license. See the LICENSE file for more info.