0
嗯,我需要swift中的大小元素。蝙蝠这...swift中的宽度元素
let screenSize: CGRect = UIScreen.mainScreen().bounds
print(grid.frame.size.width, screenSize.width)
// 560.0 414.0
在故事板
View
+ Grid
+ Constrains
+ Grid.leading = leadingMargin
+ Grid.bottom = Bottom Layout Guide.top
+ Grid.top = top
+ Grid.trailing = leadingMargin
你如何捕捉的宽度(实际)元素的网格?