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-08-2009, 12:41 PM   #1 (permalink)
shimmy
Registered Member
 
Join Date: Jul 2009
Location: North America
Posts: 53
shimmy is on a distinguished road
Default Using the keyboard -- setting target - action with Done button on the keyboard

I've been looking through documentation and sample code and it almost always uses an external button to dismiss the keyboard and return what's in the text. I want to know how you set the target-action on the "Done" or "Return" or whatever button on the keyboard so that when you're done typing, the keyboard disappears, the view changes, the text is returned etc.

How do you access that "Done" button?

I also tried
[userNameInput addTarget:self action:@selector(editingOver: ) forControlEvents:UIControlEventEditingDidEndOnExit];

but the control event doesn't seem to return unless you actually exit the text field...?

I think my main problem is setting the target - action method... I tried with a simple button, couldn't get it to work...

Thanks

Last edited by shimmy; 09-08-2009 at 01:12 PM.
shimmy is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,181
Threads: 93,920
Posts: 402,154
Top Poster: BrianSlick (7,968)
Welcome to our newest member, ayesha25
Powered by vBadvanced CMPS v3.1.0

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