Quote:
Originally Posted by keyboardcowboy
Cheers 
|
I gave up trying to customize the keyboard itself, but I'd still consider hiding the keyboard and using my own total replacement.
For the next version of my app I took a cue from FastWriter (
Fast Writer Adds Extra Row of Keys to the iPhone’s Keyboard Art of the iPhone) and added an extra row of keys. I even went to the trouble of Photoshopping up the enlarged key thingies so I could make it look and act just like the regular keyboard.
Here are two handy methods that helped to get the proper behavior:
Code:
// Play the built-in keyboard click sound
- (void)playKeyboardClick {
AudioServicesPlaySystemSound(0x450);
}
// Insert a string into a UITextField at the cursor position
- (void)insertString:(NSString *)text intoTextField(UITextField *)textfield {
UIPasteboard* generalPasteboard = [UIPasteboard generalPasteboard];
NSArray* items = [generalPasteboard.items copy];
generalPasteboard.string = text;
[textfield paste:self];
generalPasteboard.items = items;
[items release];
}