Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 972 Bytes

LGViewHUD

A HUD that mimics the native one used in iOS (when you press volume up or down on the iPhone for instance) and also provides some more features (some more animations + activity indicator support included.) iOS7 and above only.

License

LGViewHUD is licensed under the WTFPL license. ( http://www.wtfpl.net/ )

Code example:

#import "LGViewHUD.h"
..


#in a UIViewController ....
LGViewHUD* hud = [LGViewHUD defaultHUD];
hud.image=[UIImage imageNamed:@"rounded-checkmark.png"];
hud.topText=@"LGViewHUD";
hud.bottomText=@"you did it !";  

# show it in current view (it will disappear 2 sec later)
[hud showInView:self.view]

#with an activity indicator
hud.activityIndicatorOn=YES;