How to put a UITextField inside of a UITableViewCell (grouped)?

后端 未结 3 867
你的背包
你的背包 2020-12-18 08:23

How to put a UITextField inside of a UITableViewCell (grouped)? I want a user to be able to edit it.

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-18 08:34

    Add the UITextField as an subview of the UITableViewCell's contentView:

    [mycell.contentView addSubview:view];
    

提交回复
热议问题