JGProgressHUDPieIndicatorView Class Reference

Inherits from JGProgressHUDIndicatorView : UIView
Declared in JGProgressHUDPieIndicatorView.h
JGProgressHUDPieIndicatorView.m

Overview

A pie shaped determinate progress indicator.

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

  color

Tint color of the Pie. @attention Custom values need to be set after assigning the indicator view to @c JGProgressHUD’s @c indicatorView property.

@property (nonatomic, strong, nonnull) UIColor *color

Discussion

Tint color of the Pie. @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

JGProgressHUDPieIndicatorView.h

  fillColor

The background fill color inside the pie. @attention Custom values need to be set after assigning the indicator view to @c JGProgressHUD’s @c indicatorView property.

@property (nonatomic, strong, nonnull) UIColor *fillColor

Discussion

The background fill color inside the pie. @attention Custom values need to be set after assigning the indicator view to @c JGProgressHUD’s @c indicatorView property.

@b Default: Dark gray for JGProgressHUDStyleDark, otherwise light gray.

Declared In

JGProgressHUDPieIndicatorView.h