Is there a way to see if the iPhone device has "Keyboard Clicks" on or off?
Can my app get t开发者_如何学Che current status of the Keyboard Click setting?
Or even better is there a way to turn off Keyboard Clicks while my app is running?
This is a user system setting, so I'm fairly certain you won't be able to turn this off for your app. From a user's perspective would it be a good experience to disable this even if you could? They expect clicks to happen when typing, so if they aren't hearing clicks even though they've explicitly enabled them they might assume it is in error.
You can disable the click sounds of a UIPickerView. Undocumented, but pretty safe:
if ([myPickerView respondsToSelector:@selector(setSoundsEnabled:)])
[myPickerView setValue:[NSNumber numberWithBool:NO] forKey:@"soundsEnabled"];
精彩评论