如何在iPhone X上将ARSCNView安装到SafeArea?

时间:2019-02-27 00:32:55

标签: ios storyboard augmented-reality arkit

我如何使ARSCNView对象适合带有情节提要的iPhone X的SafeArea?

1 个答案:

答案 0 :(得分:1)

选择ARSCNView的最高约束(Scene View.top = top),然后在尺寸检查器中将名为Second Item的属性从 Superview 更改为安全区域

enter image description here

现在在“文档大纲”区域中显示为:Scene View.top = Safe Area.top

Constant = 0此属性是一个偏移量。

enter image description here

然后选择Xcode底部的View as: iPhone Xs

enter image description here

希望这会有所帮助。