Can anyone tell me how I can discover if the user has enabled/disabled that annoying click when they type, I'd like to use that as a default to indicate whether I should make a click when they click something.
Thanks, vic
Can anyone tell me how I can discover if the user has enabled/disabled that annoying click when they type, I'd like to use that as a default to indicate whether I should make a click when they click something.
Thanks, vic
You can't access the system preference, but as of iOS 4.2 you can ask the system to make the click sound if the user's setting allows it. Add the UIInputViewAudioFeedback protocol to your view's declaration, like:
@interface MyView : UIView <UIInputViewAudioFeedback>
Then implement the enableInputClicksWhenVisible method
- (BOOL)enableInputClicksWhenVisible
{
return YES;
}
and call
[[UIDevice currentDevice] playInputClick];
to play that annoying click sound.
As far as I know, access to the user's general preferences is not allowed in the public API. Best you can do is make a feature request/file a bug report at: