开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜