Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinkirkup/TRSDialScrollView
A horizontal scroll dial for iOS using a custom UIScrollView
https://github.com/kevinkirkup/TRSDialScrollView
Last synced: 3 months ago
JSON representation
A horizontal scroll dial for iOS using a custom UIScrollView
- Host: GitHub
- URL: https://github.com/kevinkirkup/TRSDialScrollView
- Owner: kevinkirkup
- License: mit
- Created: 2013-06-29T19:58:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-21T11:10:59.000Z (over 9 years ago)
- Last Synced: 2024-07-20T05:20:53.192Z (4 months ago)
- Language: Objective-C
- Size: 290 KB
- Stars: 152
- Watchers: 12
- Forks: 13
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TRSDialScrollView
=================[![Version](https://cocoapod-badges.herokuapp.com/v/TRSDialScrollView/badge.svg)](https://cocoapod-badges.herokuapp.com/v/TRSDialScrollView/badge.svg)
[![Platform](https://cocoapod-badges.herokuapp.com/p/TRSDialScrollView/badge.svg)](https://cocoapod-badges.herokuapp.com/p/TRSDialScrollView/badge.svg)This is a custom UIScrollView that I used for one of my apps.
It's a customizable dial control for all your control displaying needs.
Includes customization through UIAppearance for all major properties.![Dial Example](./images/TRSDialScrollView.png)
## TODO
* Still need to add support for AutoLayout and it has all of the normal pitfalls when using UIScrollViews with AutoLayout.
## Installation
To add TRSDialView to your project, add the following to your Podfile:
```ruby
playform :iospod 'TRSDialScrollView', '>= 1.0'
```## Usage
```objective-c
- (void) viewDidLoad
{
[super viewDidLoad];// Set the numeric range for the dial
[self.dialView setDialRangeFrom:0 to:50];// Set the default value
self.dialView.currentValue = 20;
}- (void)someOtherMethod
{
NSInteger value = self.dialView.currentValue;
}
```## Credits
[Kevin Kirkup](https://github.com/kevinkirkup)([@pan_and_scan](http://twitter.com/pan_and_scan))
## License
`TRSDialScrollView` is distributed under the [MIT License](http://opensource.org/licenses/MIT).