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 06-02-2010, 04:52 AM   #1 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 14
spire_bt is on a distinguished road
Lightbulb custom keyboard ?

is it possible to NOT show the keyboard when clicking on a text field, instead of that to write numbers from buttons on the view...something like a calculator
i'm new in this so i don't know all the possibilities
spire_bt is offline   Reply With Quote
Old 06-02-2010, 04:56 AM   #2 (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

Sure it is possible. You just disable the user interaction on the textfield. and then process user tapped buttons into text to be displayed into the textfield.
rocotilos is offline   Reply With Quote
Old 06-02-2010, 05:02 AM   #3 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 14
spire_bt is on a distinguished road
Default

Quote:
Originally Posted by rocotilos View Post
Sure it is possible. You just disable the user interaction on the textfield. and then process user tapped buttons into text to be displayed into the textfield.
I'v done the disabling and the keys have values... but i don't know how to show them in the text field...little help pls... do you know a tutorial about this stuff, send me a link or something , I rely wana learn this )
spire_bt is offline   Reply With Quote
Old 06-02-2010, 05:25 AM   #4 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 14
spire_bt is on a distinguished road
Default

does the native keyboard have only numerical view ???
spire_bt is offline   Reply With Quote
Old 06-02-2010, 10:52 AM   #5 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Johanovski is on a distinguished road
Default

Hi there!

I'm not used to work with Interface Builder and it's elements (I mostly work with OpenGL and Cocos2D), but I've done some little things and I think I can help you a little.
You should have a method associated with every number. When calling this method you just simply need to append the associated number to the textfield content. It should be something like this:
Code:
-(void)touchNumber:(int)num
{
     [self.textField setText:[self.textField.text stringByAppendingString:[NSString stringWithFormat:@"%d",num]]];
}
Note that you should have declared the textField as a property of your class so you can refer it from anywhere (inside the class, obviously).

With this you should append as many numbers as you want to the textField using your own buttons (when touching a button simply call the "touchNumber" method with the corresponding number).

Hope it helped, let me know if you have any other doubt and I will help you if I can!
Johanovski is offline   Reply With Quote
Old 06-02-2010, 10:57 AM   #6 (permalink)
Registered Member
 
Join Date: Mar 2010
Location: Tennessee
Posts: 23
DevinSnipes is on a distinguished road
Default

Quote:
Originally Posted by spire_bt View Post
does the native keyboard have only numerical view ???
Yes! It does in Interface Builder, or I could give you the exact code if needed
__________________
-Regards,

Devin Snipes
My Website
Follow Me on Twitter

My AppStore Apps:
Am I Ugly(Free)
uChat For iPhone(Free)
MCS For iPhone(Free)
DevinSnipes is offline   Reply With Quote
Old 06-02-2010, 11:00 AM   #7 (permalink)
Registered Member
 
Join Date: Mar 2010
Location: Tennessee
Posts: 23
DevinSnipes is on a distinguished road
Default

Quote:
Originally Posted by Johanovski View Post
Hi there!

I'm not used to work with Interface Builder and it's elements (I mostly work with OpenGL and Cocos2D), but I've done some little things and I think I can help you a little.
You should have a method associated with every number. When calling this method you just simply need to append the associated number to the textfield content. It should be something like this:
Code:
-(void)touchNumber:(int)num
{
     [self.textField setText:[self.textField.text stringByAppendingString:[NSString stringWithFormat:@"%d",num]]];
}
Note that you should have declared the textField as a property of your class so you can refer it from anywhere (inside the class, obviously).

With this you should append as many numbers as you want to the textField using your own buttons (when touching a button simply call the "touchNumber" method with the corresponding number).

Hope it helped, let me know if you have any other doubt and I will help you if I can!

Hey could you please take a look at my question, since you have some experience in iPhone Development. Here is the link Save UISwitch's Current State - iPhone Dev SDK Forum
__________________
-Regards,

Devin Snipes
My Website
Follow Me on Twitter

My AppStore Apps:
Am I Ugly(Free)
uChat For iPhone(Free)
MCS For iPhone(Free)
DevinSnipes is offline   Reply With Quote
Reply

Bookmarks

Tags
custom keyboard, iphone calculator, iphone keyboard

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: 347
13 members and 334 guests
ajay123123, Anwerbl, ashaman64, baja_yu, ChrisYates, HemiMG, mini998, mottdog, newDev, Objective Zero, oceanlablight, pkIDSF, Steven.C
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,878
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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