title: get ringer volume level using AVSystemController in ios
body: <p>How can i get iphone's current ringer volume level using AVSystemController</p>
  
  <p>I also tried below code to check volume level </p>
  
  <pre><code>MPVolumeView *slide = [MPVolumeView new];
  UISlider *volumeViewSlider;
  
  for (UIView *view in [slide subviews]){
      if ([[[view class] description] isEqualToString:@"MPVolumeSlider"]) {
          volumeViewSlider = (UISlider *) view;
      }
  }
  float val = [volumeViewSlider value];
  </code></pre>
  
  <p>But when i print / check val, it returns 1.00</p>
  
  <p>I also tried below code</p>
  
  <pre><code>musicPlayer = [MPMusicPlayerController applicationMusicPlayer];
  Nslog(@"%f",musicPlayer.volume);
  </code></pre>
  
  <p>But it also returns 1.00 event if my phone is silent. I refer below link
  <a href="https://stackoverflow.com/questions/7946246/how-to-determine-the-current-level-of-the-iphone-ringer">How to determine the current level of the iPhone ringer?</a> but i could not find solution. </p>
  
  <p>Please help.</p>