Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-24-2010, 09:48 AM   #30 (permalink)
teddfox
Registered Member
 
Join Date: Feb 2010
Posts: 1
teddfox is on a distinguished road
Default

Quote:
Originally Posted by slahteine View Post
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];
}
My concern is when the keyboard dismisses, does it dismiss with the default keyboard, or does it dismiss on it's own. I have a custom toolbar on top of the default keyboard, but when the keyboard is dismissed, the toolbar dismisses separately and looks like cluttered rubbish
teddfox is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,526
Threads: 94,045
Posts: 402,623
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iThoms
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:14 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.