TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Feb 2015 |
Maintained by Wongzigii.
Drag the WZSnakeHUD
file into your project.
1, Add the following import to the top of the file:
#import "WZSnakeHUD.h"
2, Use the following to display the HUD:
[WZSnakeHUD show:@"Loading"];
3, Simply dismiss after complete your task:
[WZSnakeHUD hide];
With long-running task, it is recommended to put your stuff on a blackground queue, getting rid of the block of User Interface, and update on the main queue after fired.
[WZSnakeHUD show:@"Loading"];
dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
// Do your stuff...
dispatch_async(dispatch_get_main_queue(), ^{
[WZSnakeHUD hide];
});
});
Feel free to customize.
BackgroundColor:
[WZSnakeHUD showWithBackgroundColor:[UIColor purpleColor]];
MaskColor:
[WZSnakeHUD showWithMaskColor:[UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:0.5f]];
LineWidth:
[WZSnakeHUD showWithLineWidth:4.5f];
Dimiss:
[WZSnakeHUD hide];