JGProgressHUDRingIndicatorView Class Reference
Inherits from | JGProgressHUDIndicatorView : UIView |
---|---|
Declared in | JGProgressHUDRingIndicatorView.h JGProgressHUDRingIndicatorView.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
– setProgress:animated:
Adjusts the current progress shown by the receiver, optionally animating the change.
- (void)setProgress:(float)progress animated:(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
– 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
Other Methods
ringBackgroundColor
Background color of the ring. @attention Custom values need to be set after assigning the indicator view to @c JGProgressHUD’s @c indicatorView property.
@property (nonatomic, strong, nonnull) UIColor *ringBackgroundColor
Discussion
Background color of the ring. @attention Custom values need to be set after assigning the indicator view to @c JGProgressHUD’s @c indicatorView property.
@b Default: Black for JGProgressHUDStyleDark, light gray otherwise.
Declared In
JGProgressHUDRingIndicatorView.h
ringColor
Progress color of the progress ring. @attention Custom values need to be set after assigning the indicator view to @c JGProgressHUD’s @c indicatorView property.
@property (nonatomic, strong, nonnull) UIColor *ringColor
Discussion
Progress color of the progress ring. @attention Custom values need to be set after assigning the indicator view to @c JGProgressHUD’s @c indicatorView property.
@b Default: White for JGProgressHUDStyleDark, otherwise black.
Declared In
JGProgressHUDRingIndicatorView.h
roundProgressLine
Sets if the progress ring should have a rounded line cap.
@property (nonatomic, assign) BOOL roundProgressLine
Discussion
Sets if the progress ring should have a rounded line cap.
@b Default: NO.
Declared In
JGProgressHUDRingIndicatorView.h
ringWidth
Width of the ring.
@property (nonatomic, assign) CGFloat ringWidth
Discussion
Width of the ring.
@b Default: 3.0.
Declared In
JGProgressHUDRingIndicatorView.h