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 10-19-2009, 01:55 PM   #8 (permalink)
phuffstatler
Registered Member
 
Join Date: Feb 2009
Location: Texas
Posts: 4
phuffstatler is on a distinguished road
Default One more tidbit.

While this works well, I might add that if you don't have the Delegate set to the First Responder (Top item "delegates" under Outlets on the Nib Connections Inspector view (Command-2)) then no matter what, it won't dismiss that silly keyboard! I struggled for hours with that, and used a "touch anywhere else on the screen" workaround before figuring that out.

Frustrating, to say the least. Boy, do I miss VB6!

Phil

Huffco Consulting
www.huffcoconsulting.com

Quote:
Originally Posted by nobre84 View Post
You should implement the textfield delegate method below, it is called when you click the Done button on the keyboard
Code:
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
	[textField resignFirstResponder]; //dismiss the keyboard
        //do whatever else you need with the text
phuffstatler is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,287
Threads: 93,961
Posts: 402,316
Top Poster: BrianSlick (7,972)
Welcome to our newest member, dionnaav83
Powered by vBadvanced CMPS v3.1.0

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