title: Cleanest way of capturing volume up/down button press on iOS 8
body: <p>What's the best/cleanest way of capturing volume up/down button presses on <em>iOS 8</em>?</p>
  
  <p>Ideally I'd like to capture the keypress and also prevent the system volume from changing (or at the very least, prevent the volume change HUD from showing).</p>
  
  <hr>
  
  <p>There are some old answers going around which use deprecated methods and don't seem to work at all on iOS 8. This <a href="https://stackoverflow.com/a/27180527/269753">iOS 8 specific one</a> didn't work either.</p>
  
  <p>This <a href="https://github.com/PTEz/RBVolumeButtons" rel="noreferrer">RBVolumeButtons</a> open source class doesn't seem to work on iOS 8 either.</p>