Skip to content

Commit 46d8ed0

Browse files
author
Marco Abundo
committed
2 parents 11ef33f + 6a0960f commit 46d8ed0

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)