swift - Apple TV - 设置 tableviewcell 位置

标签 swift uitableview tableview tvos apple-tv

我在 Storyboard内定义的自定义 tableviewcell 中有一个按钮。 标签可以贴在左边吗? 目前它的左侧有一些空间。请帮忙。

最佳答案

UIButton属性检查器中:

更改从中心的水平对齐方式:

领导:

enter image description here

更新:

将 Storyboard中UITableView中的Separator Inset自动更改为:

enter image description here

自定义,左右值为0:

enter image description here

关于swift - Apple TV - 设置 tableviewcell 位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52757335/

相关文章:

ios - 得到无法识别的选择器 -replacementObjectForKeyedArchiver : crash when implementing NSCoding in Swift

ios - 从 UITableViewCell 呈现 UIAlertController

ios - Swift UITableView(无部分)过滤到带部分的 TableView

ios - 是否可以在应用程序加载数据并卡住时显示警报?

Iphone 4s 和 Iphone 5s 上的 Swift TableView 高度不同

swift - 为什么我的可选值没有展开,Swift?

ios - 如何解决 Swift 中的这种类型不明确的错误?

arrays - Swift 字符串数组

ios - 更新应用程序后在应用程序中添加新数据

ios - 在编辑过程中自定义 UITableViewCell 的外观