View Full Version : UITableViewCell editing
kd7qis
Aug 8, 2008, 12:37 AM
Does anybody know how I can make a UITableViewCell act like a text input box? I cannot for the life of me figure it out...
tacoman667
Aug 8, 2008, 07:47 AM
You will probably need to put a UITextField into the cell's contentView. Do this either at cellForRowAtIndex or the cell selected action method for dynamically inserting the UITextView when someone touches the cell to select it.
detz
Aug 8, 2008, 08:12 AM
Yeah, cells are UIView so you can do anything you can do to a view.
[cell addSubview:[[UITextField alloc] initWithFrame:CGRectMake(0,0,100,30)]];
for example.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.