Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
UITableViewCell - iPhone Development Wiki

UITableViewCell

From iPhone Development Wiki
Revision as of 19:26, 11 December 2009 by KennyTM~ (talk | contribs) (Created page with 'UITableViewCell is view that displays a cell (row) in a UITableView. == Using text field in table cells == {{function signature |signature=@property(readonly, retain, n…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UITableViewCell is 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