0

How do we disable the keyboard tap sound programatically? I am sure it's a setting in UItextfield.

Frank
  • 2,993
  • 5
  • 37
  • 66

2 Answers2

0

The closest thing I was able to find is how to subclass particular views to disable sound:

Can I disable UIPickerView scroll sound?

I can't test this at work, but if it is possible, this may be related. UIKeyboard is a class that you can't actually subclass though, nor even declare. You can find an actual reference to it though via the following method:

http://www.iphonedevsdk.com/forum/iphone-sdk-development/6573-howto-customize-uikeyboard.html

Also, in the UIKeyboardImpl header file, I do see the setSoundsEnabled method:

http://ericasadun.com/iPhoneDocs/_u_i_keyboard_impl_8h-source.html

Community
  • 1
  • 1
shawnwall
  • 4,369
  • 1
  • 25
  • 35
0

You cannot change this value. It's a user preference and only controllable through the Settings App.

Emil
  • 7,112
  • 17
  • 75
  • 132
Tim
  • 2,724
  • 1
  • 16
  • 10