A nicer way to show HUD's on your ViewControllers (using Cocoapods).
Add this line to your Podfile:
pod 'UIViewController+HUD', '~> 1.0.0'
then run pod install.
From within any UIViewController subclass, simply call these methods:
[self showHud]; or [self showHudAnimated:NO];
[self hideHud] or [self hideHudAnimated:NO];
This category includes several overloaded options, allowing you to specify a title in your HUD, etc.
- (void) showHud;- (void) showHudAnimated:(BOOL)animated;- (void) showHudWithTitle:(NSString*)title;- (void) showHudWithTitle:(NSString*)title animated:(BOOL)animated;- (void) showHudWithTitle:(NSString*)title andSubtitle:(NSString*)subtitle;- (void) showHudWithTitle:(NSString*)title andSubtitle:(NSString*)subtitle animated:(BOOL)animated;
- (void) hideHud;- (void) hideHudAnimated:(BOOL)animated;
MIT license.
This Objective-C category makes use of MBProgressHUD.