DTProgressHUD Class Reference
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’
Tasks
Other Methods
-
fadeInDuration
property -
fadeOutDuration
property -
contentColor
property -
hideAnimationType
property -
showAnimationType
property
Showing of HUD
Updating of tex and image
Hiding of HUD
Progress
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
Instance Methods
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