title: iOS 9: How to change volume programmatically without showing system sound bar popup?
body: <p>I have to change the volume on iPad and using this code:</p>
  
  <pre><code>[[MPMusicPlayerController applicationMusicPlayer] setVolume:0];
  </code></pre>
  
  <p>But this changing volume and showing system volume bar on iPad. <strong>How to change the sound without showing the volume bar?</strong></p>
  
  <p>I know, <code>setVolume:</code> is deprecated, and everybody says to use <code>MPVolumeView</code>. If this is the only way to solve my problem, then how to change the volume using <code>MPVolumeView</code>? I don't see any method in <code>MPVolumeView</code> that changes the sound. <br>Should I use some another class together with <code>MPVolumeView</code>?</p>
  
  <p>But it's preferable to use <code>MPMusicPlayerController</code>.</p>
  
  <p>Thank you for advice!</p>