【发布时间】:2017-01-20 22:56:30
【问题描述】:
我正在尝试更改 UITableViewCell 的 detailDisclosureButton 的默认按钮。
我可以通过执行以下操作来更改按钮:
button.frame = CGRect(x: 0, y: 0, width: 10, height: 10)
button.backgroundColor = UIColor.black
cell.accessoryView = button
但是,在这种情况下,我丢失了详细信息按钮右侧的披露指示克拉。那是因为根据文档定义一个accessoryView会忽略accessoryType的值。
无论如何要让附件类型为 detailDisclosureButton 并为按钮定义自定义图像。即自定义按钮并保留克拉以供披露?
【问题讨论】:
标签: ios swift xcode tableviewcell