y0n3l / LGViewHUD

A HUD that mimics the iOS one.
32 stars 12 forks source link

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;