开发者

how to make one row of an UITableView become text editable?

开发者 https://www.devze.com 2023-01-15 16:13 出处:网络
I hope to display one row of UITableView with property cell.accessoryType= UITableViewCe开发者_Go百科llAccessoryDisclosureIndicator;

I hope to display one row of UITableView with property

cell.accessoryType= UITableViewCe开发者_Go百科llAccessoryDisclosureIndicator; 

if user touches/selects the row, it will display an UITextField for user to edit the text of this row.

Is it possible?


UITableViewCellAccessoryDisclosureIndicator shows a chevron on the table row, this indicates that another view will be activated, so isn't appropriate for an editable row.

The cell has an accessory control shaped like a regular chevron. It is intended as a disclosure indicator. The control doesn't track touches.

What you might want to do instead is set the accessoryView on your UITableViewCell to a UITextField.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号