简体   繁体   English

Tableview单元上的情节提要板约束以匹配页脚内容

[英]Storyboard constraint on tableview cell to match footer content

I'm pretty sure this is an easy question and most likely there is something already on Stackoverflow which has this answered but for the life of me my Googling / searching is letting me down... 我很确定这是一个简单的问题,而且很可能在Stackoverflow上已经有东西可以解决这个问题,但是对于我来说,我的谷歌搜索/搜索让我失望了...

(If this is answered already please direct me and I'll happily remove this ...) (如果已经回答了这个问题,请指导我,我会很高兴将其删除...)

So...looking at this screenshot in the Settings app: 因此...在“设置”应用中查看此屏幕截图:

在此处输入图片说明

How would I get the table cell label to align perfectly to the footer content? 如何获得表格单元格标签,使其与页脚内容完全对齐? ATM, using the default blue dashed guidelines in Storyboard, the alignment is to the left...applying a constraint that matches (very roughly and very manual) to the footer copy as shown in Storyboard, the alignment is not consistent across screen sizes. ATM,使用情节提要中的默认蓝色虚线指南,对齐方式在左侧...应用了一个约束(非常粗略且非常手动)与“情节提要”中所示的页脚副本,该对齐方式在屏幕尺寸之间不一致。

Any pointers would be appreciated. 任何指针将不胜感激。

Screenshot of Storyboard below... 下面的情节提要的屏幕快照...

在此处输入图片说明

为标签添加前导约束,并以编程方式更改它以匹配cellforrow方法中的页脚

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM