Skip to content

Commit 30b8e10

Browse files
committed
Create README.md
1 parent b2b2803 commit 30b8e10

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#VolumeControl
2+
3+
VolumeControl is a custom volume control for iPhone featuring a well-designed round slider.
4+
5+
## Preview
6+
<img src="https://github.com/12Rockets/VolumeControl/blob/master/VolumeControl.gif" width="250">
7+
8+
## Usage
9+
10+
```objc
11+
// Include VolumeControl.h into your ViewController.
12+
// Don’t forget to set your delegate:
13+
@interface ViewController () <VolumeControlDelegate>
14+
15+
16+
17+
@property (nonatomic, strong)VolumeControl *control;
18+
19+
20+
21+
self.control = [[VolumeControl alloc] initWithCenter:CGPointMake(screen.size.width, screen.size.height)
22+
23+
withRadius:screen.size.width*0.50
24+
25+
withVolume:self.volume/100
26+
27+
withVolumeControlDelegate:self];
28+
29+
[self.myView addSubview: control];
30+
31+
32+
33+
// VolumeControl animates from the bottom-right corner of the screen thus it will need either the UIButton or UIView to show the controller.
34+
35+
- (IBAction)onVolumeButton:(id)sender {
36+
37+
[self.control setHidden:NO];
38+
39+
}
40+
```
41+
##Credit
42+
Designed and developed by [12Rockets](http://12rockets.com/).
43+
44+
###Development
45+
46+
* [Marko Cancar](https://github.com/marko-cancar)
47+
48+
###Design
49+
50+
* [Maja Savic](https://github.com/majasavic)
51+
* [Nikola Zivanovic](https://github.com/therandoman)
52+
53+
---
54+
##Feedback
55+
Send us your feedback at hello@12rockets.com or hit us up on [Twitter](https://twitter.com/TwelveRockets).
56+
57+
58+
## License
59+
This projected is licensed under the terms of the MIT License (MIT) License. See LICENSE.txt for more details.

0 commit comments

Comments
 (0)