I have tried this url to insert uitextfield in custom cell but what i am not sure is when to save the modified content.
Please let me know and thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One approach is to make the your UITableViewController implement the UITextFieldDelegate protocol, then assign it as the delegate of the UITextField embedded in your CustomCell UITableViewCellSubclass.
You’ll firstly need to implement the UITextFieldDelegate protocol in your table view controller subclass…
Then in your subclass add an implementation for the textFieldShouldReturn:(UITextField*)textField method. This method will be called when the user finished editing the content’s of your cell’s UITextField…
Lastly you’ll need to set your CustomCell’s UITextField’s delegate property to be your UITableViewController subclass. To do this simply add a single method call to your existing tableView:cellForRowAtIndexPath: method…