1

This post explains how to prevent the new predictive text bar appearing during UITextField input:

Disable UITextField Predictive Text

But I have been unable to adapt that to a UITableViewCell. How do I access the textfield of the cell?

Community
  • 1
  • 1
HenryRootTwo
  • 2,572
  • 1
  • 27
  • 27

1 Answers1

0

You can't set it on a UITableViewCell because the cell does not use a keyboard. you need to set it to the text fields subviews of the cell.

Edit post-comment

There are many ways to access a field in a UITableViewCell. I'm including the two most common.

  1. Tag the field in storyboard then you can write in viewForRowAtIndexPath:

    UITextField *tf=(UITextField *)[yourCell viewWithTag:yourTag];
    
  2. Sub class your UITableViewCell (I think this results in the cleanest code). Now you can create an IBOutlet for each sub view in directly in the class of your cell.

Mika
  • 5,807
  • 6
  • 38
  • 83
  • This is what I'm looking to do, but don't know how to access that field. Have clarified the original post. Thanks. – HenryRootTwo May 11 '15 at 23:25
  • You should make the question's post more descriptive to help the most people possible. Maybe something like: "accessing a sub view of UITableViewCell" – Mika May 11 '15 at 23:35