jpsim / JPSVolumeButtonHandler

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

fix lost control when fist time init... #14

Closed wkmeow closed 9 years ago

wkmeow commented 9 years ago

fix some device will execute the handleBlock when fist time init

jpsim commented 9 years ago

I don't think this is correct. If the initial volume is 0 when the handler is initialized, the blocks will never run.

wkmeow commented 9 years ago

but when the handler init it will assign minVolume to the initVolume, right? So ,when it init the initVolume will not be 0.

jpsim commented 9 years ago

The initial volume will never be zero because it would then be set to minVolume at initialization time.