in interface builder there is property of UIButton under Accessibility that says “Plays Sound”.
Can any one explain what is this. Actually i am making an application which play sound on every button click and i can disable sounds from setting screen. Will this property of UIButton can help me?
Thanks
You can use
[[UIDevice currentDevice] playInputClick];to play the keyboard input click sound which is available inUIDevice. Check this apple documentation for more details.You need to do the following for this,
UIInputViewAudioFeedbackprotocol in your input view class.enableInputClicksWhenVisibledelegate method to return YES.Do this in
UIViewclass,Then implement
enableInputClicksWhenVisiblemethodIf you are facing issues with this, you can check this.