Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

xslim/TKGauge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1d3f603 · Oct 6, 2012

History

23 Commits
Oct 3, 2012
Jun 18, 2012
Jun 18, 2012
Jun 19, 2012
Jun 18, 2012
Oct 3, 2012
Oct 6, 2012
Jun 18, 2012
Oct 3, 2012
Jun 18, 2012
Jun 18, 2012

Repository files navigation

TKGauge

iOS UI component to display gauge

Installation

  • You need cocoapods lib manager
  • Edit your Podfile and add
dependency 'TKGauge', :podspec => 'https://raw.github.com/xslim/TKGauge/master/TKGauge.podspec'

Usage

  • See Example project

1

Loading Gauge

NSString *path = [[NSBundle mainBundle] bundlePath];
self.gaugePath = [[path stringByAppendingPathComponent:@"Gauges"] stringByAppendingPathComponent:@"speed.gauge"];

Data filter

  • By default, data filter maxAverageCount will be loaded from skin's config config.averageFilter - TODO
  • To turn off data filter just say self.dataFilter.maxAverageCount = 0; (Ex. some where in viewDidLoad)

Theaming

  • See Gauges folder