How to programatically sense the iPhone mute switch?
Posted
by
Olie
on Stack Overflow
See other posts from Stack Overflow
or by Olie
Published on 2008-11-13T17:09:11Z
Indexed on
2011/01/16
16:53 UTC
Read the original article
Hit count: 245
iphone
I can't seem to find in the SDK how to programatically sense the mute button/switch on the iPhone. When my app plays background music, it responds properly to the volume button without me having any code to follow that but, when I use the mute switch, it just keeps playing away.
How do I test the position of mute?
(NOTE: My program has its own mute switch, but I'd like the physical switch to override that.)
Thanks!
© Stack Overflow or respective owner