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-30-2009, 07:56 PM   #12 (permalink)
ScottH
Registered Member
 
Join Date: Oct 2009
Posts: 1
ScottH is on a distinguished road
Default Couple of Tweaks to make it *work*

Quote:
Originally Posted by coxaqui View Post
You should post your code. The instructions above do not work for me. When does the textfield then know to resign the keyboard? Also, the above done method is returning a BOOL when it should be returning void no?
1. The done method does not need to return *anything*. Just delete 'return YES'.
2. In order to make this work, via IB, you must set the 'Received Actions' for the First Responder:
a) Select First Responder
b) View Connections Inspector
c) Drag FROM the 'pressDoneKey' Connection (radio button) to the actual TextField.
d) Select 'Did End On Exit' (in the pop-up list of actions)

Save. That's it. It worked for me.

HTH

P.S. BTW, thanks for posting this sequence. Very helpful and appreciated.
ScottH is offline   Reply With Quote
 

» Advertisements
» Online Users: 591
19 members and 572 guests
aemgtz, ashaman64, Batman, BrianSlick, chiataytuday, daunmi, djbrooks111, Droverson, fugufish, GHuebner, givensur, HowEver, linkmx, mariano_donati, Newbie123, SLIC, stevenkik, tommiss12
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,318
Threads: 93,988
Posts: 402,406
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Libera
Powered by vBadvanced CMPS v3.1.0

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