Skip to content

ty0x2333/TYTumblrHUD

Repository files navigation

__ __| \ \   / __ __|                  |      |        |   |  |   |  __ \ 
   |    \   /     |  |   |  __ `__ \   __ \   |   __|  |   |  |   |  |   |
   |       |      |  |   |  |   |   |  |   |  |  |     ___ |  |   |  |   |
  _|      _|     _| \__,_| _|  _|  _| _.__/  _| _|    _|  _| \___/  ____/

CI Status Version Carthage compatible codebeat badge License Platform

Progress HUD like Tumblr. API style like MBProgressHUD.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

CocoaPods

TYTumblrHUD is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TYTumblrHUD"

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate TYTumblrHUD into your Xcode project using Carthage, specify it in your Cartfile:

github "luckytianyiyan/TYTumblrHUD"

Run carthage to build the framework and drag the built TYTumblrHUD.framework into your Xcode project.

Usage

TYTumblrHUD *hud = [TYTumblrHUD showHUDAddedTo:self.view animated:YES];

dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
    // do something ...

    dispatch_async(dispatch_get_main_queue(), ^{
        [hud hideAnimated:YES];
    });
});

License

TYTumblrHUD is available under the MIT license. See the LICENSE file for more info.