Accessing volume of iPhone/iPad/iPod from your iPhone Application

By using this post, I am going to explain you how to access the Volume of iPhone using your Application. Just follow the steps described here.

Here is the snapshot of Expected output.

iPhone Volume Slider Demo

iPhone Volume Slider Demo

1) Import MediaPlayer.framework in your project.

2) Open view-controller header file & Import MediaPlayer framework.

3) Place a UIView object in your .xib file where you want to have Volume Slider

iPhone Volume Slider

4) Connect view to file’s Owner.

iPhone Volume Slider Connection

5) Place following code in your view controller’s .m file.

6) Grab the sample code from here.

Watch the Video for Development.

Watch the Video of Output.

Leave a Reply

Your email address will not be published. Required fields are marked *