Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Control Master Volume - iPhone, Cocoa Touch

I'm wanting to control the master volume of the iPhone with a UISlider. There is a way of doing it without code and I've forgot how to. So code or within the xib, how do I do this?

Thanks

like image 807
Plies Neyo Avatar asked Feb 14 '26 17:02

Plies Neyo


1 Answers

You can try the following method: Place it in your XIB.

  1. Open the XIB where you want to place to slider into
  2. Add a UIView to your view
  3. Change the class identity from UIView to MPVolumeView
  4. Change backgroundColor to clear
like image 117
Panshul Avatar answered Feb 17 '26 10:02

Panshul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!