gpt4 book ai didi

swift - Tableview 原型(prototype)单元高于其他单元

转载 作者:行者123 更新时间:2023-11-30 13:32:49 27 4
gpt4 key购买 nike

我用 UIViewController 制作了一个表格 View ,并将表格 View 方案拖到 View Controller 中。我已经记住了类(class)所需的所有代码(我很确定??)。但我不明白,为什么原型(prototype)电池的尺寸与所有其他电池不同?当我运行应用程序时,它将如下图所示

enter image description here

最佳答案

转到 Storyboard 文件并选择您的原型(prototype)单元。然后在右侧边栏(实用工具 Pane )中选择“大小”检查器。您可以在此处输入单元格的自定义高度:

enter image description here

-- 编辑--

也许删除 UIViewController 的 ScrollView 插入?选择 UIViewController 并在属性检查器中取消选中:“调整 ScrollView 插入”:

enter image description here

关于swift - Tableview 原型(prototype)单元高于其他单元,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36387469/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com