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 09-14-2009, 03:19 PM   #18 (permalink)
brygruver
Registered Member
 
Join Date: Dec 2008
Posts: 4
brygruver is on a distinguished road
Default

Quote:
Originally Posted by starwarsdevwookie59 View Post
This is great! Im having a problem though. Your method for making sure the next keyboard not have the decimal only works if you switch views. What if i have three text inputs on a page and only want one of them to have the decimal? How would you solve that?
Thanks!
I've updated the Example to solve this issue. Please check out my new site.

www.CocoaLines.com - Custom Number Pad

Code:
- (void)textFieldDidBeginEditing:(UITextField *)textField {
	// We need to access the dot Button declared in the Delegate.
    ExampleAppDelegate *appDelegate = (ExampleAppDelegate *)[[UIApplication sharedApplication] delegate];
	// Only if we are editing within the Number Pad Text Field do we want the dot.
	if (numericTextField.editing) {
		// Show the Dot.
		appDelegate.dot.hidden = NO;
	} else {
		// Otherwise, Hide the Dot.
		appDelegate.dot.hidden = YES;
	}
}
You could also do:

Code:
if ([numericTextField isFirstResponder])

Last edited by brygruver; 11-03-2009 at 03:18 PM.
brygruver is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,183
Threads: 93,923
Posts: 402,162
Top Poster: BrianSlick (7,968)
Welcome to our newest member, gab20
Powered by vBadvanced CMPS v3.1.0

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