Showing posts with label HUB. Show all posts
Showing posts with label HUB. Show all posts

Friday, January 17, 2014

Progress HUD

ProgressHUD is a lightweight and easy-to-use HUD for iOS 7 (written in Objective-C).

Installation

Drag the ProgressHUD/ProgressHUD folder into your project.

Requirements

  • Xcode 5
  • iOS 7
  • ARC

Displaying the HUD

+ (void)show:(NSString *)status;
+ (void)showSuccess:(NSString *)status;
+ (void)showError:(NSString *)status;
showSuccess and showError will automatically dismiss the HUD.

iOS / iPhone / iPad 适配iOS 7的HUD。 iOS / iPhone / iPad 适配iOS 7的HUD。 iOS / iPhone / iPad 适配iOS 7的HUD。 iOS / iPhone / iPad 适配iOS 7的HUD。

Dismissing the HUD

+ (void)dismiss;

Usage

1., Add the following import to the top of the file:
#import "ProgressHUD.h"
2., Use the following to display the HUD:
[ProgressHUD show:@"Please wait..."];
3., Simply dismiss after complete your task:
[ProgressHUD dismiss];

Color shemes

Use sheme_white or sheme_black depending on your needs. However feel free to customize the color settings in ProgressHUD.h file.

Download: https://github.com/relatedcode/ProgressHUD/archive/master.zip