UISlider subclass to sync with device volume value like default music app.
- Drag SNVolumeSlider.h and SNVolumeSlider.m to your project.
- Add "MediaPlayer.framework" and "AudioToolbox.framework" to your linked frameworks.
SNVolumeSlider *volumeSlider = [[SNVolumeSlider alloc] init];
[[self view] addSubView:volumeSlider];
You can also use in Interface Builder.
Please check the included demo project for more options.
SNVolumeSlider is licensed under the terms of the MIT License. Please see the LICENSE file for full details.