title: How to change the volume in iOS9?
body: <p>This code works fine in iOS 8.0 devices, but in iOS 9.0 always getting slider value as 0.000...</p>
  
  <pre><code>(void) volumeUp{
  
  MPVolumeView * volumeView = [[MPVolumeView alloc] init];
  
  //find the volumeSlider
  UISlider* volumeViewSlider = nil;
  for (UIView *view in [volumeView subviews]){
      if ([view.class.description isEqualToString:@"MPVolumeSlider"]){
          volumeViewSlider = (UISlider*)view; // volumeViewSlider always 0.000
          break;
      }
  }
  
  [volumeViewSlider setValue: [volumeViewSlider value] + 0.0625 animated:YES];
  [volumeViewSlider sendActionsForControlEvents:UIControlEventTouchUpInside];
  
  }
  </code></pre>
  
  <p>How can I fix it? I need to turn up the volume 0.0625 each time.</p>
  
  <p>Thanks!</p>