Giter Site home page Giter Site logo

dhimageprogresshud's Introduction

DHImageProgressHud

DHImageProgressHud is a easy to use Hud built on the same foundation as SVProgressHUD. Instead of displaying the standard spinner, DHImageProgressHud enable developers to simply plug a set of animation frames and loop through that as the loading view.

Installation

Manual Installation

  • Sorry cocoapods not available yet. I'm still in the middle of getting things together.
  • Drag the DHImageProgressHud/DHImageProgressHud folder into your project.
  • Add the QuartzCore framework to your project.

Usage

Example Use Case

[DHImageProgressHud show];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    // time-consuming task
    dispatch_async(dispatch_get_main_queue(), ^{
        [DHImageProgressHud dismiss];
    });
});

Setting your own Animation Images

In order to load your images into DHImageProgressHud :

All Image files must be named in sequential order and must be 4 digits (padded with 0's if necessary).

example :coffee_0000.png, this represents the first frame of our animation

+ (void)setAnimationImagePrefix:(NSString *)imagePrefix numOfFrames:(NSInteger)frames;

[DHImageProgressHud setAnimationImagePrefix:@"coffee" numOfFrames:3];

Credits

DHImageProgressHud was inspired by and built on top of Sam Vermette's SVProgressHUD

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.