gpt4 book ai didi

ios - 如何将 ARSCNView 适配到 iPhone X 上的 SafeArea?

转载 作者:行者123 更新时间:2023-11-29 11:29:40 25 4
gpt4 key购买 nike

我怎样才能使 ARSCNView 对象适应带有 Storyboard 的 iPhone X 的 SafeArea?

最佳答案

选择 ARSCNView 的顶部约束(Scene View.top = top),然后在 Size Inspector 中更改名为 Second Item 的属性 监督安全区

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

希望这对您有所帮助。

关于ios - 如何将 ARSCNView 适配到 iPhone X 上的 SafeArea?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54896286/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com