[英]Autolayout constraints with UITableViewCell to display two Views
I have a UITableViewCell which has two UIViews, I want these two views to appear and resize as per screen size. 我有一个具有两个UIViews的UITableViewCell,我希望这两个视图出现并根据屏幕大小调整大小。 Please see attached images to get an idea what I am trying to achieve, I have also attached constrains I have tried.
请查看附件中的图片以了解我要实现的目标,并且还附加了我尝试过的约束。
Please correct , whats wrong with this. 请更正,这有什么问题。
What you need to do is select both views and select the constraints 您需要做的是同时选择两个视图并选择约束
and then the margin between them and margins to superview 然后它们之间的边距和要进行监督的边距
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.