An open API service indexing awesome lists of open source software.

https://github.com/sger/sgswipecontrol


https://github.com/sger/sgswipecontrol

Last synced: 4 months ago
JSON representation

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];
```