ProgressHUD is a lightweight and easy-to-use HUD for iOS 7 (written in Objective-C).
Drag the ProgressHUD/ProgressHUD
folder into your project.
- Xcode 5
- iOS 7
- ARC
+ (void)show:(NSString *)status;
+ (void)show:(NSString *)status Interacton:(BOOL)Interaction;
+ (void)showSuccess:(NSString *)status;
+ (void)showSuccess:(NSString *)status Interacton:(BOOL)Interaction;
+ (void)showError:(NSString *)status;
+ (void)showError:(NSString *)status Interacton:(BOOL)Interaction;
showSuccess
and showError
will automatically dismiss the HUD.
+ (void)dismiss;
1., Add the following import to the top of the file:
#import "ProgressHUD.h"
2., Use the following to display the HUD:
[ProgressHUD show:@"Please wait..."];
3., Simply dismiss after complete your task:
[ProgressHUD dismiss];
Use sheme_white
, sheme_black
or sheme_color
depending on your needs. However feel free to customize the color settings in ProgressHUD.h
file.
ProgressHUD was inspired by SVProgressHUD project.
The success and error icons are from Glyphish.
Do you have any questions or idea? My email is: [email protected] or you can find some more info at relatedcode.com