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

How to hide Volume popup ? #20

Closed hitubansal123 closed 8 years ago

hitubansal123 commented 8 years ago

How to hide Volume popup ?

jpsim commented 8 years ago

It's tricky. In previous versions of iOS (years ago when I first wrote this), this code was sufficient to hide the HUD: https://github.com/jpsim/JPSVolumeButtonHandler/blob/4345cba6dd056dcbd84966c8689040a58735c6b3/JPSVolumeButtonHandler/JPSVolumeButtonHandler.m#L41-L47

Obviously that's very brittle code and no longer appears to work in recent versions of iOS. So this should be fixed by someone who's actually interested in that. I haven't used this component myself in years.

hitubansal123 commented 8 years ago

So what you suggest .. Can you give me idea ?

jpsim commented 8 years ago

Debug the current brittle code to see how it could be adapted to work with recent iOS versions.