Created
June 5, 2013 12:59
-
-
Save monjer/5713668 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIActivityIndicatorView+Short.h | |
| // | |
| // Created by manjun.han on 13-3-27. | |
| // Copyright (c) 2013年 com.hmj. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> | |
| @interface UIActivityIndicatorView (Short) | |
| + (UIActivityIndicatorView*)newWhiteLargeStyleWithAnimation:(BOOL)autoAnimating ; | |
| + (UIActivityIndicatorView*)newWhiteStyleWithAnimation :(BOOL)autoAnimating; | |
| + (UIActivityIndicatorView*)newGrayStyleWithAnimation :(BOOL)autoAnimating; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIActivityIndicatorView+Short.m | |
| // | |
| // Created by manjun.han on 13-3-27. | |
| // Copyright (c) 2013年 com.hmj. All rights reserved. | |
| // | |
| #import "UIActivityIndicatorView+Short.h" | |
| @implementation UIActivityIndicatorView (Short) | |
| + (UIActivityIndicatorView*)newWhiteLargeStyleWithAnimation:(BOOL)autoAnimating | |
| { | |
| UIActivityIndicatorView *acView = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge] ; | |
| if (autoAnimating) { | |
| [acView startAnimating] ; | |
| } | |
| return acView ; | |
| } | |
| + (UIActivityIndicatorView*)newWhiteStyleWithAnimation:(BOOL)autoAnimating | |
| { | |
| UIActivityIndicatorView *acView = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite] ; | |
| if (autoAnimating) { | |
| [acView startAnimating] ; | |
| } | |
| return acView ; | |
| } | |
| + (UIActivityIndicatorView*)newGrayStyleWithAnimation:(BOOL)autoAnimating | |
| { | |
| UIActivityIndicatorView *acView = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray] ; | |
| if (autoAnimating) { | |
| [acView startAnimating] ; | |
| } | |
| return acView ; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment