File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,19 +6,11 @@ A double-tap `UISegmentedControl` subclass. Each segment functions as a discrete
66
77## Installation
88
9- - Add ` SLTDoubleTapSegmentedControl.h ` and ` SLTDoubleTapSegmentedControl.m ` to your project.
10- - ` #import "SLTDoubleTapSegmentedControl.h" ` where you want to add the control.
9+ ### CocoaPods
1110
12- ## Usage
13-
14- ``` objective-c
15- SLTDoubleTapSegmentedControl *doubleTapSegmentedControl = [[SLTDoubleTapSegmentedControl alloc ] initWithItems: @[ @"home", @"work", @"other"]] ;
16- // Set tintColors for first 2 segments
17- [ doubleTapSegmentedControl setTintColor:[ UIColor greenColor] forSegmentAtIndex:0] ;
18- [ doubleTapSegmentedControl setTintColor:[ UIColor redColor] forSegmentAtIndex:1] ;
19- // Add target-action method
20- [ doubleTapSegmentedControl addTarget: self action:@selector (segmentedControlChangedValue:) forControlEvents: UIControlEventValueChanged ] ;
21- [ self.view addSubview: doubleTapSegmentedControl ] ;
11+ Add this to your Podfile.
12+ ``` ogdl
13+ pod 'SLTDoubleTapSegmentedControl'
2214```
2315
2416## License
You can’t perform that action at this time.
0 commit comments