Inherits from TKView : UIView
Declared in TKGauge.h

Overview

A view visualizing the amount, value, content of some variable.

Properties

delegate

Represents TKGauge delegate.

@property (nonatomic, weak, nullable) id<TKGaugeDelegate> delegate

Declared In

TKGauge.h

insets

Represents the insets of the gauge view.

@property (nonatomic) UIEdgeInsets insets

Declared In

TKGauge.h

labelSubtitle

Represents the secondary label attached to the gauge.

@property (nonatomic, strong, readonly, nonnull) UILabel *labelSubtitle

Declared In

TKGauge.h

labelSubtitleOffset

Determines the offset of the secondary labels attached to the gauge.

@property (nonatomic) CGPoint labelSubtitleOffset

Declared In

TKGauge.h

labelTitle

Represents the main label attached to the gauge.

@property (nonatomic, strong, readonly, nonnull) UILabel *labelTitle

Declared In

TKGauge.h

labelTitleOffset

Determines the offset of the main labels attached to the gauge.

@property (nonatomic) CGPoint labelTitleOffset

Declared In

TKGauge.h

rectWithInsets

Returns the bounds of the gauge view with insets.

@property (nonatomic) CGRect rectWithInsets

Declared In

TKGauge.h

scales

Contains all the scales in given TKGauge.

@property (nonatomic, strong, readonly, nonnull) NSArray<__kindofTKGaugeScale*> *scales

Declared In

TKGauge.h

Instance Methods

addScale:

Adds scale to TKGauge.

- (void)addScale:(TKGaugeScale *__nonnull)scale

Parameters

scale

The scale that will be added to the gauge.

Declared In

TKGauge.h

insertScale:atIndex:

Inserts scale in TKGauge at given index.

- (void)insertScale:(TKGaugeScale *__nonnull)scale atIndex:(int)index

Parameters

scale

The scale to insert.

index

The index that the scale will be inserted to.

Declared In

TKGauge.h

removeAllScales

Removes all scales from TKGauge.

- (void)removeAllScales

Declared In

TKGauge.h

removeScale:

Removes scale from TKGauge.

- (void)removeScale:(TKGaugeScale *__nonnull)scale

Parameters

scale

The scale that will be removed from the gauge.

Declared In

TKGauge.h

removeScaleAtIndex:

Removes scale from TKGauge by index.

- (void)removeScaleAtIndex:(int)index

Parameters

index

The index of the scale that will be removed from the gauge.

Declared In

TKGauge.h

scaleAtIndex:

Returns scale at given index.

- (TKGaugeScale *__nullable)scaleAtIndex:(int)index

Parameters

index

The index of the scale that will be returned.

Declared In

TKGauge.h