IOS keyboard selects user preferences

Can someone tell me how I can find out if the user is turned on / off this annoying click when he is typing, I would like to use this as the default to indicate if I should click when he has something clicks.

Thanks vic

+2
ios objective-c iphone
source share
2 answers

As far as I know, access to general user settings is not allowed in the public API. The best you can do is make a request / function file the error message in:

https://bugreport.apple.com/

+2
source share

You cannot access system preferences, but with iOS 4.2 you can ask the system to make a click sound if customization allows it. Add the UIInputViewAudioFeedback protocol to your view declaration, for example:

@interface MyView : UIView <UIInputViewAudioFeedback> 

Then we implement the enableInputClicksWhenVisible method

 - (BOOL)enableInputClicksWhenVisible { return YES; } 

and call

 [[UIDevice currentDevice] playInputClick]; 

to play that annoying click sound.

See http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/InputViews/InputViews.html%23//apple_ref/doc/uid/TP40009542-CH12-SW4

+10
source share

All Articles