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 08-04-2008, 02:29 PM   #5 (permalink)
melii1983
New Member
 
Join Date: Jul 2008
Posts: 15
melii1983 is on a distinguished road
Default

Well, I've figured out something that works...

I've created a subclass of UICell that has a UITextField as a property.

In the "cellForRowAtIndexPath" method in the view controller, I then set the delegate for the text field to the view controller.

In then have the view controller adopt the UITextFieldDelegate protocol and implement the method "(BOOL)textFieldShouldReturn" in the view controller. Within this method I update the model and resign firstResponder

When I enter data into the text field and hit "return", the model is updated and the keyboard goes away. <yeah!>

-M
melii1983 is offline   Reply With Quote
 

» Advertisements
» Online Users: 645
22 members and 623 guests
007007, ADY, appsman, baja_yu, Bertrand21, coolman, dacapo, dremayl49, gbenna, greeneye82, jaystudio, kapps11, linkmx, marleneZ, pipposanta, QuantumDoja, SLIC, tapan.raju, thorb65, trisvandis, trunglee, ukneeq
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,182
Threads: 93,921
Posts: 402,155
Top Poster: BrianSlick (7,968)
Welcome to our newest member, appsman
Powered by vBadvanced CMPS v3.1.0

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