开发者

Edit Cell Text in UITableView

开发者 https://www.devze.com 2023-01-27 16:57 出处:网络
In my app I have a set number of cells in a UITableView, 10, no more, no less, and the user can\'t change that.

In my app I have a set number of cells in a UITableView, 10, no more, no less, and the user can't change that.

However what I would like to have is so that if the user was to naturally in an iOS fashion, swipe a cell, or press an edit button, the cell text becomes editable with a simple tap on the cell bringing up a keyboard.

I was just wondering if there is a fairly simple method 开发者_StackOverflow社区to do this, or take quite of custom building? What are you thoughts on how this could go together?

Thanks.


This should work if you just add a UITextField into the table cell's contentView I believe.

0

精彩评论

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