... 页边距约束 Leading and Trailing space 方向比例约束 Aspect ratio constraint 原型 [NSLayoutConstraint constraintWithItem:(id)item ...
基于1个网页-相关网页
Using normalize-space sets this right: it removes leading and trailing white space and turns all other sequences of white space into a single space.
使用normalize - space可将此设置正确:它将删除开头和结尾处的空格,并将所有其他空格序列转为单独一个空格。
Removes leading and trailing white space from a String object instance.
对象实例移除前导空白字符和尾随空白字符。
One way I can do is to set the leading space and trailing space of the top subview with respect to the main view and also centering horizontally in the main view.
我可以做的一个方法是设置顶部子视图相对于主视图的前导空格和尾随空格,并且在主视图中水平居中。
应用推荐