File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments