如何使用界面构建器将视图的底部锚点固定到iOS 11中superview的底部安全区域锚点?
我已经能够以编程方式执行此操作:
if (@available(iOS 11.0, *)) {
[self.myBottomView.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor].active = true;
} else {
[self.myBottomView.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor].active = true;
}
当我进入界面构建器时,我看不到底部安全区域锚点: