UITableViewCell editing

Discussion in 'iOS Programming' started by kd7qis, Aug 7, 2008.

  1. kd7qis macrumors newbie

    Joined:
    Aug 7, 2008
    #1
    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...
     
  2. tacoman667 macrumors regular

    Joined:
    Mar 27, 2008
    #2
    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.
     
  3. detz macrumors 65816

    Joined:
    Jun 29, 2007
    #3
    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.
     

Share This Page