Inherits from UIView
Declared in DTProgressHUD.h

Overview

Class for displaying informations (in the middle fo the screen).

The name of this class comes from Apples UIProgressHUD which is private API.

You can display text with either an image or progress.

There is no need to call addSubview on Superview of ‘DTProgressHUD’. Creates own ‘UIWindow’ for displaying similar to ‘UIAlertView’

Properties

contentColor

Here you can specify the color that is used for displayed text and pie progress if used. Default color is black.

@property (nonatomic, strong) UIColor *contentColor

Declared In

DTProgressHUD.h

fadeInDuration

The duration for fading in animation when show method is called. Default value is 0.3f.

@property (nonatomic, assign) NSTimeInterval fadeInDuration

Declared In

DTProgressHUD.h

fadeOutDuration

The duration for fading out anaimation when hide method is called. Default value is 0.7f.

@property (nonatomic, assign) NSTimeInterval fadeOutDuration

Declared In

DTProgressHUD.h

hideAnimationType

The type of animation when HUD is going to hide. On iOS6 every animation you set is done with fading because UIKit Dynamics requires iOS7

@property (nonatomic, assign) HUDProgressAnimationType hideAnimationType

Declared In

DTProgressHUD.h

showAnimationType

The type of animation when HUD is going to show. On iOS6 every animation you set is done with fading because UIKit Dynamics requires iOS7

@property (nonatomic, assign) HUDProgressAnimationType showAnimationType

Declared In

DTProgressHUD.h

Instance Methods

hide

Hides the displayed HUD with fading out animation

- (void)hide

Declared In

DTProgressHUD.h

hideAfterDelay:

Hides the displayed HUD after a given delay by fading out

- (void)hideAfterDelay:(NSTimeInterval)delay

Parameters

delay

The time after HUD starts to fade out

Declared In

DTProgressHUD.h

setImage:

Update (set) image

- (void)setImage:(UIImage *)image

Parameters

image

The image to be (set) updated

Declared In

DTProgressHUD.h

setProgress:

Set progress when HUDProgressTypePie is used

- (void)setProgress:(float)progress

Parameters

progress

The progress percentage

Declared In

DTProgressHUD.h

setText:

Update (set) text

- (void)setText:(NSString *)text

Parameters

text

The text to be (set) updated

Declared In

DTProgressHUD.h

showWithText:image:

Shows a message with image on the HUD

- (void)showWithText:(NSString *)text image:(UIImage *)image

Parameters

text

The text that is displayed on the HUD

image

The image that is displayed on the HUD

Declared In

DTProgressHUD.h

showWithText:progressType:

Shows a message with progress on the HUD

- (void)showWithText:(NSString *)text progressType:(HUDProgressType)progressType

Parameters

text

The text that is displayed on the HUD

progressType

The type of progress indicator to show in animation

Declared In

DTProgressHUD.h