Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cemolcay/GiFHUD
progress hud for displaying only animated gif images. no labels (for now)
https://github.com/cemolcay/GiFHUD
Last synced: 6 days ago
JSON representation
progress hud for displaying only animated gif images. no labels (for now)
- Host: GitHub
- URL: https://github.com/cemolcay/GiFHUD
- Owner: cemolcay
- License: mit
- Created: 2014-10-30T10:38:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-09T14:40:29.000Z (almost 10 years ago)
- Last Synced: 2024-11-01T12:10:06.458Z (8 days ago)
- Language: Objective-C
- Size: 307 KB
- Stars: 160
- Watchers: 12
- Forks: 40
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gif - GifHUD - iOS progress hud for displaying only animated GIF images. (Libraries / Objective-C)
README
GiFHUD
======progress hud for displaying only animated gif images. no labels (for now)
Demo
----![alt tag](https://raw.githubusercontent.com/cemolcay/GiFHUD/master/demo.gif)
Usage
-----Copy & paste the GiFHUD.h/m files to your project.
Add your gif file or image sequance files to your project.
Import `GifHUD.h`//Setup GiFHUD image
[GiFHUD setGifWithImageName:@"pika.gif"];
[GiFHUD show];Thats it !
Just use `[GiFHUD show]` or `[GiFHUD showWithOverlay]` for showing the hud.
`[GiFHUD dismiss]` for dismissing the hud.+ (void)setGifWithImages:(NSArray *)images;
+ (void)setGifWithImageName:(NSString *)imageName;
+ (void)setGifWithURL:(NSURL *)gifUrl;You can set your gif with giving its `NSString` name, `NSBundle` url or `NSArray` of `UIImage`s.
Optional values
---------------#define Size 150
#define FadeDuration 0.3
#define GifSpeed 0.3
#define OverlayAlpha 0.3If you want to customise the looking just edit these values on the top of .m file.
Credits
=======The animated gif to UIImage library i used:
https://github.com/mayoff/uiimage-from-animated-gif