v0.0.2
This commit is contained in:
parent
038b5fbd45
commit
243121035c
11
README.md
11
README.md
|
|
@ -95,6 +95,11 @@ You can then use TGPCamelLabels on top of other UI elements with no ill effet.
|
|||

|
||||
|
||||
###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
|
||||
|
|
|
|||
Loading…
Reference in New Issue