jpsim / JPSVolumeButtonHandler

JPSVolumeButtonHandler provides an easy block interface to hardware volume buttons on iOS devices. Perfect for camera apps!
MIT License
336 stars 91 forks source link

iOS 11 volumu block not work #59

Open supergithuber opened 6 years ago

supergithuber commented 6 years ago

when volume reach to max, upblock doesn't work when volume reach to min, downblock doesn't work

supergithuber commented 6 years ago

i solve the problem audiosession doesn't call willchange and didchange whitch call observevalueforkey, so it will no call upblock and downblock, because of the precision so i change the maxVolume to 0.9f and minVolume to 0.1f, it works

supergithuber commented 6 years ago

MPVolumeView is placed far away, did you call setsystemvolume before MPVolumeView's frame is set?

rsimenok commented 6 years ago

I had the same issue.