简体   繁体   中英

How to customize button in UITableViewCell?

我已经在UITableView中实现列表页面,现在我将手指滑到表格单元格上,然后出现删除按钮,但是我想将我的自定义图像插入delete。是否可以给我建议?

您可以尝试创建自己的按钮并将其作为子视图添加到单元格中。

There isn't a built in way to change that button, it's part of the standard UI. You could, however, catch the flick yourself, and create your own button that says whatever you want.

I think it might be possible to grab the deleteButton reference and alter it, but that would affect the whole application and isn't a good practice to get into.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM