From 243121035cb8a02483dba2cbef4a9fc1fd1853bc Mon Sep 17 00:00:00 2001 From: Xavier Schott Date: Wed, 18 Feb 2015 19:41:07 -0800 Subject: [PATCH] v0.0.2 --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1284c55..9d2e5c8 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,11 @@ You can then use TGPCamelLabels on top of other UI elements with no ill effet. ![image](https://cloud.githubusercontent.com/assets/4073988/5910599/b775b6e8-a570-11e4-9846-d990ca0f8c9c.png) ###Code example + +See **TGPControlsDemo** projects: + 1. `TGPControlsDemo` (iOS 8 + Swift + IBInspectable) + 2. `TGPControlsDemo7` (iOS 7 + ObjC) projects. + ``` #import "ViewController.h" #import "TGPDiscreteSlider.h" @@ -127,9 +132,9 @@ You can then use TGPCamelLabels on top of other UI elements with no ill effet. @"N",@"O",@"P",@"Q",@"R",@"S", @"T",@"U",@"V",@"W",@"X",@"Y",@"Z"]; self.switch1Camel.names = @[@"OFF", @"ON"]; - // Match the ticks spacing exactly - self.alphabetLabels.ticksDistance = self.alphabetSlider.ticksDistance; - self.oneTo10Labels.ticksDistance = self.oneTo10Slider.ticksDistance; + // Automatically track tick spacing changes + self.alphabetSlider.ticksListener = self.alphabetLabels; + self.oneTo10Slider.ticksListener = self.oneTo10Labels; } #pragma mark TGPDiscreteSlider