I use MPVolumeView to allow the user to control his preferred audio route when using my application.
The view is represented by this code:
self.volumeView = [[MPVolumeView alloc] initWithFrame:self.view.frame]; self.volumeView.showsVolumeSlider = NO; [self.view addSubview:self.volumeView];
When the user deletes the audio route button, a menu appears with the available options.
Problem: The screen displaying the volume view may need to be hidden due to various events being processed by my application, and I would like to hide the audio route menu at the same time (if it is currently presented)
My question is: Does anyone know if it is possible to manually disable the MPVolumeView route selection menu without pressing the cancel button?
Thanks!
Simon source share