ios - Swift TableViewCell 自定义样式

标签 ios swift uitableview tableview

您好,我一直在实现自定义 TableViewCell 和自定义 View ,自定义样式和单元格语义强制从右到左,一切看起来都很好,但是当我运行应用程序时,所有 View 都在左侧相互堆叠。 这是运行应用程序之前和之后的屏幕截图 enter image description here

结果是: enter image description here

更新:约束的截图 enter image description here

enter image description here

它不会拉伸(stretch)的 tableview 有什么问题?以 3 种方式将约束设置为 0 但它不起作用

最佳答案

我无法判断屏幕截图中的约束是否有问题,这是我尝试过的方法:

enter image description here

关于ios - Swift TableViewCell 自定义样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45390863/

相关文章:

iphone - dispatch_async 会降低 UI 和应用程序的速度

ios - 没有 UINavigationController 的 UINavigationBar

ios - 单个 Viewcontroller 中的多个 UITableview

ios - 如何制作pageControl滑动效果? ScrollView 连续滑动至今

ios - 在不使用reloadData的情况下向UITableView添加一行

ios - 在 uitableViewCell 的标签内显示随机表情符号

ios - 将Objective-C block 传递给performSelector:withObject:afterDelay:是否安全?

ios - 构建项目时使用 Google Signin lib 的 Xcode 7 警告

ios - 快速上传视频到 Http 服务器?

swift - 如何使用swift将SecKey编码为base64字符串