像往常一样使用根视图的layoutMarginsGuide创建前缘和尾缘边距约束: let margins = view.layoutMarginsGuide NSLayoutConstraint.activate([ greenView.
確定! 回上一頁