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 12-09-2009, 10:18 AM   #23 (permalink)
slahteine
Programming Wizard
 
slahteine's Avatar
 
Join Date: Oct 2008
Location: Northampton, MA USA
Age: 45
Posts: 193
slahteine is on a distinguished road
Send a message via AIM to slahteine Send a message via Yahoo to slahteine Send a message via Skype™ to slahteine
Default

Quote:
Originally Posted by keyboardcowboy View Post
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];
}
__________________
|
| I wrote ChordCalc ... A cool fretboard calculator.
|

slahteine is offline   Reply With Quote
 

» Advertisements
» Online Users: 823
24 members and 799 guests
ADY, Agenor, baja_yu, cgokey, Creativ, dansparrow, Duncan C, fkmtc, ilmman, imac74, iram901, kosicki123, latoncefrank, maggyparker, muchless, nestochi, petrsigut, Promo Dispenser, raidu, SillyHoney, stanny, ubaid, xltke, _MAK88_
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,387
Threads: 94,003
Posts: 402,461
Top Poster: BrianSlick (7,978)
Welcome to our newest member, latoncefrank
Powered by vBadvanced CMPS v3.1.0

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