29 #import <Foundation/Foundation.h>
30 #import <UIKit/UIKit.h>
31 #import <CoreGraphics/CoreGraphics.h>
38 MBProgressHUDModeIndeterminate,
40 MBProgressHUDModeDeterminate,
42 MBProgressHUDModeDeterminateHorizontalBar,
44 MBProgressHUDModeAnnularDeterminate,
46 MBProgressHUDModeCustomView,
53 MBProgressHUDAnimationFade,
55 MBProgressHUDAnimationZoom,
56 MBProgressHUDAnimationZoomOut = MBProgressHUDAnimationZoom,
57 MBProgressHUDAnimationZoomIn
58 } MBProgressHUDAnimation;
61 #ifndef MB_INSTANCETYPE
62 #if __has_feature(objc_instancetype)
63 #define MB_INSTANCETYPE instancetype
65 #define MB_INSTANCETYPE id
70 #if __has_feature(objc_arc)
71 #define MB_STRONG strong
73 #define MB_STRONG retain
78 #if __has_feature(objc_arc_weak)
80 #elif __has_feature(objc_arc)
81 #define MB_WEAK unsafe_unretained
83 #define MB_WEAK assign
87 #if NS_BLOCKS_AVAILABLE
88 typedef void (^MBProgressHUDCompletionBlock)();
124 + (MB_INSTANCETYPE)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;
137 + (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;
150 + (NSUInteger)hideAllHUDsForView:(UIView *)view animated:(BOOL)animated;
158 + (MB_INSTANCETYPE)HUDForView:(UIView *)view;
166 + (NSArray *)allHUDsForView:(UIView *)view;
175 - (id)initWithWindow:(UIWindow *)window;
184 - (id)initWithView:(UIView *)view;
196 - (void)show:(BOOL)animated;
207 - (void)hide:(BOOL)animated;
219 - (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay;
233 - (void)showWhileExecuting:(
SEL)method onTarget:(
id)target withObject:(
id)object animated:(BOOL)animated;
235 #if NS_BLOCKS_AVAILABLE
242 - (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block;
249 - (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block completionBlock:(MBProgressHUDCompletionBlock)completion;
256 - (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue;
269 - (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue
270 completionBlock:(MBProgressHUDCompletionBlock)completion;
275 @property (copy) MBProgressHUDCompletionBlock completionBlock;
284 @property (assign) MBProgressHUDMode
mode;
304 @property (MB_WEAK) id<MBProgressHUDDelegate>
delegate;
329 @property (MB_STRONG) UIColor *
color;
367 @property (assign)
float graceTime;
434 @property (atomic, assign, readonly) CGSize
size;
440 @property (assign, getter = isSquare) BOOL
square;
482 @property (nonatomic, assign, getter = isAnnular) BOOL annular;
501 @property (nonatomic, MB_STRONG) UIColor *lineColor;
507 @property (nonatomic, MB_STRONG) UIColor *progressRemainingColor;
513 @property (nonatomic, MB_STRONG) UIColor *progressColor;
MBProgressHUDMode mode
Definition: MBProgressHUD.h:284
UIColor * progressTintColor
Definition: MBProgressHUD.h:471
NSString * detailsLabelText
Definition: MBProgressHUD.h:317
BOOL removeFromSuperViewOnHide
Definition: MBProgressHUD.h:390
float margin
Definition: MBProgressHUD.h:345
Definition: MBProgressHUD.h:490
float cornerRadius
Definition: MBProgressHUD.h:351
float progress
Definition: MBProgressHUD.h:465
float opacity
Definition: MBProgressHUD.h:322
id< MBProgressHUDDelegate > delegate
Definition: MBProgressHUD.h:304
Definition: MBProgressHUD.h:445
UIColor * detailsLabelColor
Definition: MBProgressHUD.h:410
UIColor * labelColor
Definition: MBProgressHUD.h:400
NSString * labelText
Definition: MBProgressHUD.h:311
Definition: MBProgressHUD.h:460
UIColor * color
Definition: MBProgressHUD.h:329
float xOffset
Definition: MBProgressHUD.h:334
UIView * customView
Definition: MBProgressHUD.h:297
CGSize size
Definition: MBProgressHUD.h:434
UIFont * detailsLabelFont
Definition: MBProgressHUD.h:405
UIColor * activityIndicatorColor
Definition: MBProgressHUD.h:416
BOOL square
Definition: MBProgressHUD.h:440
UIFont * labelFont
Definition: MBProgressHUD.h:395
MBProgressHUDAnimation animationType
Definition: MBProgressHUD.h:291
BOOL taskInProgress
Definition: MBProgressHUD.h:384
CGSize minSize
Definition: MBProgressHUD.h:426
float yOffset
Definition: MBProgressHUD.h:339
float minShowTime
Definition: MBProgressHUD.h:374
BOOL dimBackground
Definition: MBProgressHUD.h:356
Definition: MBProgressHUD.h:111
float progress
Definition: MBProgressHUD.h:421
UIColor * backgroundTintColor
Definition: MBProgressHUD.h:477