JGProgressHUDIndicatorView Class Reference
Inherits from | UIView |
---|---|
Declared in | JGProgressHUDIndicatorView.h JGProgressHUDIndicatorView.m |
Other Methods
– initWithContentView:
Designated initializer for this class.
- (instancetype)initWithContentView:(UIView *)contentView
Parameters
contentView |
The content view to place on the container view (the container is the JGProgressHUDIndicatorView). |
---|
Discussion
Designated initializer for this class.
Declared In
JGProgressHUDIndicatorView.h
– setUpForHUDStyle:vibrancyEnabled:
Use this method to set up the indicator view to fit the HUD style and vibrancy setting. This method is called by @c JGProgressHUD when the indicator view is added to the HUD and when the HUD’s @c vibrancyEnabled property changes. This method may be called multiple times with different values. The default implementation does nothing.
- (void)setUpForHUDStyle:(JGProgressHUDStyle)style vibrancyEnabled:(BOOL)vibrancyEnabled
Discussion
Use this method to set up the indicator view to fit the HUD style and vibrancy setting. This method is called by @c JGProgressHUD when the indicator view is added to the HUD and when the HUD’s @c vibrancyEnabled property changes. This method may be called multiple times with different values. The default implementation does nothing.
Declared In
JGProgressHUDIndicatorView.h
– setNeedsAccessibilityUpdate
Schedules an accessibility update on the next run loop.
- (void)setNeedsAccessibilityUpdate
Discussion
Schedules an accessibility update on the next run loop.
Declared In
JGProgressHUDIndicatorView.h
– updateAccessibilityIfNeeded
Runs @c updateAccessibility immediately if an accessibility update has been scheduled (through @c setNeedsAccessibilityUpdate) but has not executed yet.
- (void)updateAccessibilityIfNeeded
Discussion
Runs @c updateAccessibility immediately if an accessibility update has been scheduled (through @c setNeedsAccessibilityUpdate) but has not executed yet.
Declared In
JGProgressHUDIndicatorView.h
– updateAccessibility
Override to set custom accessibility properties. This method gets called once when initializing the view and after calling @c setNeedsAccessibilityUpdate.
- (void)updateAccessibility
Discussion
Override to set custom accessibility properties. This method gets called once when initializing the view and after calling @c setNeedsAccessibilityUpdate.
Declared In
JGProgressHUDIndicatorView.h
– setProgress:animated:
Adjusts the current progress shown by the receiver, optionally animating the change.
- (void)setProgress:(float)progress animated:(__unused BOOL)animated
Parameters
progress |
The new progress value. |
---|---|
animated |
YES if the change should be animated, NO if the change should happen immediately. |
Discussion
Adjusts the current progress shown by the receiver, optionally animating the change.
The current progress is represented by a floating-point value between 0.0 and 1.0, inclusive, where 1.0 indicates the completion of the task. The default value is 0.0. Values less than 0.0 and greater than 1.0 are pinned to those limits.
Declared In
JGProgressHUDIndicatorView.h
Other Methods
progress
Ranges from 0.0 to 1.0.
@property (nonatomic, assign) float progress
Discussion
Ranges from 0.0 to 1.0.
Declared In
JGProgressHUDIndicatorView.h