Editing, Tables & UITextField
I think that I must be missing something very basic here.
In Apple's sample code TaggedLocations, a UITableView with custom cells is used (both for the locations as well as the tags). The custom cells have a UITextField as part their view. Under normal (non edit) mode, these UITextField cells are non-changable. Once the edit button (self.editButtonItem) is pressed and the table is in edit mode, these UITextField cells become editable.
In my code (based upon this example), my UITextField cells are editable all the time (both in Editing/Done modes). I can turn programmatically off the field editing by using .enabled property, but I can't see any such code in Apple's sample (e.g. in the setEditing: animated: method)
I am going crazy here - what am I missing that allows Apple to control the field level editing of a UITextField via the self.editButtonIem?
Many thanks for any suggestions.
|