title: Add MPVolumeView to bottom toolbar
body: <p>I am trying to add an instance of MPVolumeView to the bottom bar of my navigation controller.(the box for toolbar is ticked)
  I do not get any errors with my code, but when I run the project on my device the volume slider is not showing. Thanks in advance for any suggestions, here is my code:</p>
  
  <pre><code>@interface ViewController ()
  {
  AVPlayer *vPlayer;
  AVPlayerItem *playerItem;
  UISegmentedControl *segm;
  UIToolbar *toolbar;
  }
  @end
  
  @implementation ViewController
  @synthesize myViewVolume;
  @synthesize nowPlaying;
  
  - (void)viewDidLoad
  {
  [super viewDidLoad];
  playerItem = [AVPlayerItem playerItemWithURL:[NSURL URLWithString:@"http://vibesradio.org:8000  /listen.pls"]];
  vPlayer = [[AVPlayer alloc] initWithPlayerItem:playerItem];
  [playerItem addObserver:self forKeyPath:@"timedMetadata" options:NSKeyValueObservingOptionNew context:NULL];
  
  
  //self.myViewVolume = [[MPVolumeView alloc] initWithFrame:CGRectMake(20, 330, 280, 50)];
  
  
  self.myViewVolume = [[MPVolumeView alloc] initWithFrame: toolbar.bounds];
  [self.myViewVolume sizeToFit];
  [self.view addSubview:toolbar];
  [toolbar addSubview:self.myViewVolume];
  
  }
  </code></pre>