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 11-03-2008, 04:07 AM   #8 (permalink)
daimoh
New Member
 
Join Date: Nov 2008
Posts: 4
daimoh is on a distinguished road
Default

no problems, I have:
Code:
- (void)textFieldDidEndEditing:(UITextField *)textField
{
	NSLog(@"didendediting");
	[self dismissModalViewControllerAnimated:YES];
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
	NSLog(@"should return");
	[textField resignFirstResponder];
	return YES;
}
The delegate for the TextField is File's Owner of the ViewController, in which the code above lies.

The Keyboard Type is "NumberPad" in IB, as well as Return Key being "done" and Auto-enable Return Key is checked.

It's important to note that if I change the Keyboard Type to "Default" or even "Numbers & Punctuation", the above code is called when the "Done" button is tapped. There's obviously no "done" key in the Number Pad and the above code is never called.

Is that enough to go on?
daimoh is offline   Reply With Quote
 

» Advertisements
» Online Users: 373
14 members and 359 guests
askb, Chickenrig, CMSLdesign, dre, guillermotricia, ilmman, LEARN2MAKE, Paul Slocum, roof44, ryantcb, Speed, spinyanteater, Trickphotostudios, waterkamp
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,591
Threads: 94,083
Posts: 402,777
Top Poster: BrianSlick (7,990)
Welcome to our newest member, guillermotricia
Powered by vBadvanced CMPS v3.1.0

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