https://github.com/sger/sgswipecontrol
https://github.com/sger/sgswipecontrol
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sger/sgswipecontrol
- Owner: sger
- License: mit
- Created: 2013-12-22T08:19:22.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-22T09:53:58.000Z (over 12 years ago)
- Last Synced: 2025-02-06T06:34:59.119Z (over 1 year ago)
- Size: 137 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.markdown
- License: LICENSE
Awesome Lists containing this project
README
# SGSwipeControl
## Installation
``` ruby
pod 'SGSwipeControl'
```
## Example
``` objc
SGSwipeControl *swipeControl = [[SGSwipeControl alloc] initWithFrame:CGRectMake(0.0f, 144.0f, self.view.bounds.size.width, 100.0f)];
swipeControl.dx = 10.0f;
swipeControl.dy = 10.0f;
swipeControl.backgroundControl = [UIColor grayColor];
swipeControl.backgroundColorButton = [UIColor redColor];
swipeControl.delegate = self;
swipeControl.data = [NSArray arrayWithObjects:@"item0", @"item1", @"item2", @"item3", @"item4", nil];
[self.view addSubview:swipeControl];
```