Inherits from SGauge : UIView
Declared in SGaugeLinear.h
Availability
Related samples

Overview

An SGaugeLinear is a gauge drawn from left-to-right as a linear display. Tickmarks are drawn underneath, with labels under the ticks.

The SGaugeLinear inherits from the SGauge base class. The methods and properties on the base class can be used to control all other aspects of the gauge’s behavior.

Tasks

Properties

needleOrientation

The orientation of the SGaugeNeedle. Defaults to SGaugeLinearNeedleOrientationUpright.

@property (nonatomic, assign) SGaugeLinearNeedleOrientation needleOrientation

Discussion

  • SGaugeLinearNeedleOrientationUpright: The needle will point from the axis outwards.
  • SGaugeLinearNeedleOrientationReversed: The needle will point from the opposite edge towards the axis.

Declared In

SGaugeLinear.h

orientation

The orientation of the SGaugeLinear. Defaults to SGaugeLinearOrientationHorizontal.

@property (nonatomic, assign) SGaugeLinearOrientation orientation

Discussion

  • SGaugeLinearOrientationHorizontal: The gauge is drawn as a horizontal line, from left to right.
  • SGaugeLinearOrientationVertical: The gauge is drawn as a vertical line, from top to bottom.

Declared In

SGaugeLinear.h