title: Using a UISlider to change volume
body: <p>What's the best way to use a UISlider to change the volume of the iPhone in an app?</p>
  
  <hr>
  
  <p>I've tried using that Bill (<a href="https://stackoverflow.com/questions/463034/iphone-sdk-uislider-to-change-volume#463970">Using a UISlider to change volume</a>)</p>
  
  <p>But nothing appears on the screen using the code:</p>
  
  <pre><code>MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:
                                  CGRectMake(0, 0, 215, 22)] autorelease];
  volumeView.center = CGPointMake(150,375);
  [volumeView sizeToFit];
  [self.view addSubview:volumeView];
  </code></pre>