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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-03-2010, 10:39 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 12
Zook is on a distinguished road
Default Number pad with decimal point and return key

Hi
Just checking I've got this right. I can now get a number pad with a decimal point , but it's not in interface builder... and there is no return key!?
Any shortcuts appreciated!
Zook is offline   Reply With Quote
Old 12-03-2010, 11:27 AM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

In IB, select the text field you want to change the keyboard for then look in the properties inspector, there is a "Numbers & Punctuation" option.
baja_yu is offline   Reply With Quote
Old 12-03-2010, 08:45 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 12
Zook is on a distinguished road
Default

Thanks for reply. Yes, Ive seen that. Unfortunately it has a load of other characters. I just need what the numberpad has with a decimal point and done/return key.
Zook is offline   Reply With Quote
Old 12-03-2010, 09:05 PM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

I don't think you can do that with the default keyboard. You will need to create your own I think. Check this for more details Loading…
baja_yu is offline   Reply With Quote
Old 12-03-2010, 10:12 PM   #5 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

If you only target iOS users 4.2 and above, there is already a keypad built in with Decimal button and done key.

However if you plan to support for earlier OS, the only way is to customize it.

1. hack the UIKeyboard (probably apple dont like it)
2. just add additional buttons on top of it and animate to follow the keypad.
3. define your own view as the keypad. use the textFiel.inputView and define your own keypad.

i did the no.2. i have not explored no.1 and 3, so cant comment much on those.
rocotilos is offline   Reply With Quote
Old 12-03-2010, 10:44 PM   #6 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Quote:
Originally Posted by rocotilos View Post
i did the no.2.
That was more info than we needed

Just kidding. Thanks for the info on iOS 4.2. I'm still on 4.1 SDK so I wasn't aware of it. It's definitely a good addition.
baja_yu is offline   Reply With Quote
Old 12-04-2010, 02:21 AM   #7 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 12
Zook is on a distinguished road
Default

Thanks for info.
Think I'll go down the OS4.2 route, though can't find it in IB. Looks like UIKeyboardTypeDecimalPad is what I'm needing.
Zook is offline   Reply With Quote
Reply

Bookmarks

Tags
custom keyboard, decimal point, numberpad

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 364
6 members and 358 guests
chemistry, daudrizek, HemiMG, Kirkout, MarkC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:50 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0