title: Adding MPVolumeview programmatically in app
body: <p>Trying to add MPVolumeView programmtically in app by using the following code</p>
  
  <pre><code> MPVolumeView *_volumeView = [ [MPVolumeView alloc] init];
  [_volumeView setShowsVolumeSlider:YES];
  [_volumeView setShowsRouteButton:YES];
  [_volumeView sizeToFit];
  [view addSubview:_volumeView];
  </code></pre>
  
  <p>but getting so many Semantic issue that use of undeclared identifier MPVolumeView and Invalid operands to binary expression</p>
  
  <pre><code>@property (nonatomic, strong) MPVolumeView *volumeView;
  </code></pre>
  
  <p>Getting message in red for the above statement that unknown type MPVolumeView and plus property with retain or strong must be of object type.</p>
  
  <pre><code> @synthesize volumeView = _volumeView;
  </code></pre>
  
  <p>Is this the right way to add MPVolumeView programmatically in app. </p>
  
  <p>Thanks for help.</p>