我正在使用 ARKit
但它不是我应用程序的核心功能,所以我没有在 UIRequiredDeviceCapabilities中设置
。我正在设置指令 arkit
键@available(iOS 11.0, *)
,但是 ARKit
需要 A9 处理器或更高版本(即 iPhone 6S 或更新版本...)
最好的检查方法是什么?我找到了涉及 checking the device model 的解决方法在几个地方,但看起来有点复杂。这会在商店的评论中被拒绝吗?
最佳答案
为此,您应该检查 ARConfiguration
类提供的 isSupported
bool 值。
From the Apple Developer Documentation:
isSupported
A Boolean value indicating whether the current device supports this session configuration class.
All
ARKit
configurations require an iOS device with an A9 or later processor. If your app otherwise supports other devices and offers augmented reality as a secondary feature, use this property to determine whether to offer AR-based features to the user.
关于ios - ARKit:如何正确检查支持的设备?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46642418/