UITableViewCell is a view that displays a cell (row) in a UITableView.
Using text field in table cells
Signature | @property(readonly, retain, nonatomic) UITextField* editableTextField;
|
---|---|
Available in | 3.0 – |
You can associate a text field to a table view cell by initializing it with
cell = [[[UITableViewCell alloc] initWithStyle:1000 reuseIdentifier:@"..."] autorelease];
The properties of the extra text field can be edited via the editableTextField property.
Note that this text field is not very "smart". The table view won't scroll to a suitable position when the keyboard appears, for example.
References
- See also UITableViewCellLayoutManager for custom styling.
- Official reference: UITableViewCell
- Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UITableViewCell2.h