ios - 是什么阻止我们从 Storyboard中删除 UITableViewCell 中的 UILabel?

标签 ios xcode storyboard

以编程方式创建要添加到 UITableViewCellUILabel 后,我无法从 Storyboard 中删除标签对象。通常通过单击文档大纲中的对象,我们可以将其删除。但是,当尝试删除 Storyboard中不需要的 UILabel 时,它不会消失。还有其他人经历过吗?你是如何从 Storyboard 中删除对象的?

enter image description here

最佳答案

您不能从具有预定义样式的 TableView 单元格中删除标签。要完全自定义单元格的外观,请选择自定义样式:

enter image description here

此更改将删除标签。

关于ios - 是什么阻止我们从 Storyboard中删除 UITableViewCell 中的 UILabel?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34967413/

相关文章:

ios - "Unable to download application. <Appname> could not be installed at this time"

iphone - Objective C - 适用于 iPad 和 iPhone 的 Storyboard

iOS 10 自动布局 - viewDidLayoutSubviews 重复调用

ios - iOS 6 中的位置显着变化功能调用频率不如 iOS 5

ios - 如何针对不同地区和语言管理单个应用程序的 2 个版本?

c - C 中的宏扩展

ios - 如何在 Storyboard中添加自定义 UIControl 类?

ios - 导航栏标题未显示在 Storyboard屏幕上

ios - 如何在顶部标签栏中设置图像和文本?

iphone - "vector-based-data"解决方案比 "tile-based-data"解决方案复杂多少?