RAD Studio 10.4.1 is now available! Learn more. Looking for discounts? Visit our Special Offers page!

How to control “the system audio volume” of iOS

Author: h.mohri

Use C++Builder 10.2 to control audio volume of iOS.
I used the MPVolumeView class of iOS.
The MPVolumeView class is declared in “iOSapi.MediaPlayer.hpp”.

Include two files.

Form design

Arrange “Up” and “Down” two TButton. Use this button to control the volume.


Add MPVolumeView to the main form Class

Add “_di_MPVolumeView” and “_di_UISlider” to the form class.

Main Form constructor

Code of volume down button

Code of volume up button

Execute the program.

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Deep Dive Webinar: Boost C++Builder Compile Speed with TwineCompile
Related posts

Get Free Responsive Cross-Platform Login Screen Templates For Android And iOS


Learn To Build A Python GUI For Working With The Numpy Library In A Delphi Windows App


Learn About Using Right Angle Brackets In This C++11 Feature For Windows Development

C++DelphiRAD Studio

Learn How To Use WinRT In Your Native Windows Delphi And C++ Builder Apps

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.