简体   繁体   English

在Xcode 9上为不同的屏幕尺寸Swift4设置AutoLayout CustomCell TableView

[英]Set AutoLayout CustomCell TableView for different screen sizes Swift 4 on Xcode 9

I can't set the autolayout to my cell for any size screen for all iPhones. 我无法为所有iPhone的任何尺寸的屏幕设置自动布局到我的单元格。 I trying make to iPhone SE and iPhone 8 Plus but not works. 我尝试制作iPhone SE和iPhone 8 Plus,但没有用。 When I execute my project nothing appears on table. 当我执行我的项目时,表上什么也没有出现。

I did try: Set constraints. 我尝试过:设置约束。 Check use auto layout options. 选中使用自动版式选项。 Use suggest constraints. 使用建议约束。 I not sure of the information needed to contextual my question. 我不确定将我的问题背景化所需的信息。

在此处输入图片说明

在此处查看实现相同功能的演示cellSize

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Swift (Xcode) 中为不同的屏幕尺寸创建约束 - create constraint for different screen sizes in Swift (Xcode) 如何使用自动布局在Xcode 6上缩放按钮以适合不同的屏幕尺寸? - How do you scale a button on Xcode 6 to fit different screen sizes using Autolayout? 设置自动布局约束以在Swift中使用可变的垂直空间填充不同的屏幕尺寸 - Make autolayout contraints to fill different screen sizes in Swift with variable vertical spaces 在xcode中处理不同的屏幕尺寸 - dealing with different screen sizes in xcode Autolayout视图在不同的屏幕尺寸上总是相同的大小 - Autolayout views always same size on different screen sizes 如何使用自动布局为不同的屏幕尺寸按比例创建视图? - How create proportionally views with autolayout for different screen sizes? iOS-针对imageView上按钮的不同屏幕尺寸的自动布局缩放 - iOS - autolayout scaling for different screen sizes of buttons over an imageView 如何以编程方式设置Tableview CustomCell高度? - How to Set Tableview CustomCell Height programmatically? Xcode-Swift-iOS-根据标题和字幕大小扩展TableView单元格 - Xcode - Swift - iOS - Expanding TableView Cells Based on Title & Subtitle Sizes 在不同屏幕尺寸上的冲动Spritekit Xcode - Impulse on different screen sizes Spritekit Xcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM