Hey!
I want to check wether or not the iPhone is muted when the app starts, and I want some code to be run every time the mute-switch switches.
Is this possible?
Thanks :)
EDIT: I use an AVAudioPlayer
to play sounds.
What I am trying to do is to set the text of a label, if the phone is muted, in viewDidLoad:
, and edit the text again every time the state of the mute-switch changes.