A custom volume control for iPhone featuring a well-designed round slider

VolumeControl

VolumeControl is a custom volume control for iPhone featuring a well-designed round slider.

Usage

// Include VolumeControl.h into your ViewController.
// Don’t forget to set your delegate:
@interface ViewController () <VolumeControlDelegate>



@property (nonatomic, strong)VolumeControl *control; 



self.control = [[VolumeControl alloc] initWithCenter:CGPointMake(screen.size.width, screen.size.height)

                                              withRadius:screen.size.width*0.50

                                              withVolume:self.volume/100

                                   withVolumeControlDelegate:self];

[self.myView addSubview: control]; 



// VolumeControl animates from the bottom-right corner of the screen thus it will need either the UIButton or UIView to show the controller.

- (IBAction)onVolumeButton:(id)sender {

[self.control setHidden:NO];

}

GitHub