Open dtirer opened 8 years ago
Me too, don't know what's going on here
I had the same issue a while ago and found that you need to call:
[self.volumeHandler start];
after you initialize the volumeHandler. (I'm doing it in swift, so I'm guessing about the method signature for Obj-C). You should also do:
[self.volumeHandler stop]; self.volumeHandler = nil;
in something like the viewDidDisappear() or similar, depending on your usage.
I'm just doing a quick test prototype to make sure that I can in fact respond to volume buttons presses. I installed VolumeButtonHandler via Cocoapods, ensured that my project sees it and implemented the following as a test in
ViewController.m
When I load it up on my iPhone6, It doesn't print anything to my label upon pressing vol up or down