Inherits from M13ProgressView : UIView
Declared in M13ProgressViewSegmentedBar.h
M13ProgressViewSegmentedBar.m

Overview

A progress bar that shows progress with discrete values.

Properties

animationFromValue

The start progress for the progress animation.

@property (nonatomic, assign) CGFloat animationFromValue

Declared In

M13ProgressViewSegmentedBar.m

animationStartTime

The start time interval for the animaiton.

@property (nonatomic, assign) CFTimeInterval animationStartTime

Declared In

M13ProgressViewSegmentedBar.m

animationToValue

The end progress for the progress animation.

@property (nonatomic, assign) CGFloat animationToValue

Declared In

M13ProgressViewSegmentedBar.m

backgroundLayer

The layer that the background shown on.

@property (nonatomic, retain) CAShapeLayer *backgroundLayer

Declared In

M13ProgressViewSegmentedBar.m

cornerRadius

The corner radius of the segment shape if the shape is set to M13ProgressViewSegmentedBarSegmentShapeRoundedRect.

@property (nonatomic, assign) CGFloat cornerRadius

Declared In

M13ProgressViewSegmentedBar.h

currentAction

The action currently being performed.

@property (nonatomic, assign) M13ProgressViewAction currentAction

Declared In

M13ProgressViewSegmentedBar.m

displayLink

Link to the display to keep animations in sync.

@property (nonatomic, strong) CADisplayLink *displayLink

Declared In

M13ProgressViewSegmentedBar.m

failureColor

The color the bar changes to for the failure action.

@property (nonatomic, retain) UIColor *failureColor

Declared In

M13ProgressViewSegmentedBar.h

numberOfSegments

The number of segments to display in the progress view.

@property (nonatomic, assign) NSInteger numberOfSegments

Declared In

M13ProgressViewSegmentedBar.h

progress

Allow us to write to the progress.

@property (nonatomic, readwrite) CGFloat progress

Declared In

M13ProgressViewSegmentedBar.m

progressDirection

The direction of progress. (What direction the fill proceeds in.)

@property (nonatomic, assign) M13ProgressViewSegmentedBarProgressDirection progressDirection

Declared In

M13ProgressViewSegmentedBar.h

progressLayer

The layer that progress is shown on.

@property (nonatomic, retain) CAShapeLayer *progressLayer

Declared In

M13ProgressViewSegmentedBar.m

segmentSeparation

The separation between segments in points. Must be less than self.width / numberOfSegments.

@property (nonatomic, assign) CGFloat segmentSeparation

Declared In

M13ProgressViewSegmentedBar.h

segmentShape

The shape of the segments.

@property (nonatomic, assign) M13ProgressViewSegmentedBarSegmentShape segmentShape

Declared In

M13ProgressViewSegmentedBar.h

successColor

The color the bar changes to for the success action.

@property (nonatomic, retain) UIColor *successColor

Declared In

M13ProgressViewSegmentedBar.h

Instance Methods

performAction:animated:

Perform the given action if defined. Usually showing success or failure.

- (void)performAction:(M13ProgressViewAction)action animated:(BOOL)animated

Parameters

action

The action to perform.

animated

Wether or not to animate the change

Declared In

M13ProgressView.h

setIndeterminate:

Wether or not the progress view is indeterminate.

- (void)setIndeterminate:(BOOL)indeterminate

Declared In

M13ProgressView.h

setPrimaryColor:

The primary color of the M13ProgressView.

- (void)setPrimaryColor:(UIColor *)primaryColor

Declared In

M13ProgressView.h

setProgress:animated:

Set the progress of the M13ProgressView.

- (void)setProgress:(CGFloat)progress animated:(BOOL)animated

Parameters

progress

The progress to show on the progress view.

animated

Wether or not to animate the progress change.

Declared In

M13ProgressView.h

setSecondaryColor:

The secondary color of the M13ProgressView.

- (void)setSecondaryColor:(UIColor *)secondaryColor

Declared In

M13ProgressView.h