thanks for answering it might work but do i have to check it for every button click? there is no generic approach of doing this so that when i set audio ON it play and when i turn it OFF dont play...
–
abdus.meDec 3 '12 at 11:40

This will works great. Accept it as right answer if it solve your problem.
–
Ajay ChaudharyDec 4 '12 at 4:39

thanks very much, i am using this approach to build my app
–
abdus.meDec 4 '12 at 6:37

You cant change the Device sound(app will be rejected) how ever you can set volume By assigning some values between 0 to 1 .in your setting option if user selects disable then set it to 0.
check sam's answer here : How to disable iOS System Sounds

thanks for quick answer, so do i have to check it on every button click? there is no better approach of doing this?
–
abdus.meDec 3 '12 at 11:36

What do you think how this works internally, if there was a setting like this? Someone needs to check the settings. Just use the same method to play a sound everywhere and within that method check your setting.
–
jaydee3Dec 3 '12 at 11:51