Conforms to NSObject
Declared in SGaugeDelegate.h
Availability
Related samples

Overview

The SGaugeDelegate defines optional methods, which allow you to manage the appearance of the SGauge and its component parts.

Tasks

Optional Methods

Instance Methods

gauge:alterNeedle:onChangeFromValue:

Allows the delegate to apply additional styling to the needle before it is displayed.

- (void)gauge:(SGauge *)gauge alterNeedle:(UIView *)needle onChangeFromValue:(CGFloat)oldValue

Discussion

When this is called, the defaults from SGaugeStyle have already been applied. The value supplied is the old value. The new value can be retrieved from the SGauge.

Declared In

SGaugeDelegate.h

gauge:alterTickLabel:atValue:

Allows the delegate to apply additional styling to the tick label before it is displayed.

- (void)gauge:(SGauge *)gauge alterTickLabel:(UILabel *)tickLabel atValue:(CGFloat)value

Discussion

This is called whenever the SGaugeAxis is redrawn, after all defaults from SGaugeStyle have been applied.

Declared In

SGaugeDelegate.h

gauge:alterTickMark:atValue:isMajorTick:

Allows the delegate to apply additional styling to the tickmark before it is displayed.

- (void)gauge:(SGauge *)gauge alterTickMark:(UIView *)tickMark atValue:(CGFloat)value isMajorTick:(BOOL)majorTick

Discussion

When this is called, the defaults from SGaugeStyle have already been applied.

Declared In

SGaugeDelegate.h