Great class!
It worked in my lap counter app as I expected.
However, there are (at least) two cases when it loses the control of volume buttons:
1) if you visit another app and then get back to your own app
2) if you blank your display (clicking shortly power button). In my case, the app should register volume buttons even when the display is off (to save battery).
I'm glad you've found this useful, but those two scenarios aren't supported. Feel free to fork and submit an improvement if you'd like to work on this.
Great class! It worked in my lap counter app as I expected.
However, there are (at least) two cases when it loses the control of volume buttons: 1) if you visit another app and then get back to your own app 2) if you blank your display (clicking shortly power button). In my case, the app should register volume buttons even when the display is off (to save battery).
Any ideas how to manage these situations???
Tested on iPhone 5.
regards, Juha