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 03-24-2009, 08:24 AM   #1 (permalink)
aaronsbush
Registered Member
 
Join Date: Feb 2009
Posts: 19
aaronsbush is on a distinguished road
Default Custom keyboard with decimal point

Hey everyone,
I posted a thread on this the other day (http://www.iphonedevsdk.com/forum/ip...ng-string.html).

This time I'm including a few pictures to help explain the issue I'm having. The app I am creating uses multiple views and multiple text fields that use a custom number pad with a view added for a decimal point.

If I input a number with a decimal point once it works great, but if I click to another view and then go back to that text field to edit it with a different number the decimal point is then added twice. (see gif files attached)

The part of the code in the view controller that adds the decimal is:

- (void)addDecimal:(NSNotification *)notification {
textField1.text = [textField1.text stringByAppendingString:@"."];
}

I can post the rest of the code in the view controller and appDelegate if anyone thinks it will help.

Does anyone have any ideas? Let me know if I can post something else to clarify the question. I really appreciate anyone's help!
Attached Images
File Type: gif 1 decimal.gif (11.2 KB, 24 views)
File Type: gif 2 decimals.gif (11.1 KB, 16 views)
aaronsbush is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,630
Threads: 94,089
Posts: 402,801
Top Poster: BrianSlick (7,990)
Welcome to our newest member, RickyGervaiss
Powered by vBadvanced CMPS v3.1.0

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