How to get the silent mode after ios5

Hi All,

I want to get the ring/silent switch's status.I search the information is play a silent audio file use the AudioServicesPlaySystemSound.then check a threshold value to check the silent is opened.But I find out the result is not right some times.

How can I get it?


Thanks very much.

How to get the silent mode after ios5
 
 
Q