[Translation] gifhud

Source: Internet
Author: User

Gifhud

Progress Hud for displaying only animated GIF images. No labels (for now)

Status Indicator, used only to display GIF images. label cannot be added (until now)

 

Demo-Example

 

Usage-Use

Copy & Paste the gifhud. h/m files to your project.

Copy and paste the gifhud. h/m file to your project.
Add your GIF file or image sequance files to your project.

Add GIF files or image queue files to your project.
ImportGifHUD.h

Import gifhud. h file

//Setup GiFHUD image[GiFHUD setGifWithImageName:@"pika.gif"];[GiFHUD show];

Thats it!

That's all!

Just use[GiFHUD show]Or[GiFHUD showWithOverlay]For showing the HUD.

Use [gifhud show] or [gifhud showwithoverlay] to display the HUD.
[GiFHUD dismiss]For dismissing the HUD.

[Gifhud dismiss] to make the HUD disappear.

+ (void)setGifWithImages:(NSArray *)images;+ (void)setGifWithImageName:(NSString *)imageName;+ (void)setGifWithURL:(NSURL *)gifUrl;

You can set your GIF with giving itsNSStringName,NSBundleURL orNSArrayOfUIImageS.

You can set your GIF image by giving the image name, the URL of nsbundle, or the Image array sequence.

 

Optional values-options that can be set

#define Size            150#define FadeDuration    0.3#define GifSpeed        0.3#define OverlayAlpha    0.3

If you want to customise the looking just edit these values on the top of. M file.

If you want to customize some effects, modify them in the. M file.

 

Credits

The Animated GIF to uiimage library I used:

I used the following uiimage library to load GIF images:
Https://github.com/mayoff/uiimage-from-animated-gif

 

[Translation] gifhud

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.