WZSnakeHUD
Requirements
- Xcode 6
- iOS 8
- ARC
Getting Started
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];
});
});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];License
WZSnakeHUD is under MIT LICENCE, see the LICENCE file for more info.
