ios - ARKit:如何正确检查支持的设备?

标签 ios iphone arkit

我正在使用 ARKit 但它不是我应用程序的核心功能,所以我没有在 UIRequiredDeviceCapabilitiesarkit 键。我正在设置指令 @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/

相关文章:

ios - 是否可以将 NSMutableArray 或 NSDictionary 数据保存为 iOS 中的文件?

iphone - 查找重复的 iPhone 应用程序

iphone - 如何从委托(delegate)外部设置 super View ?

swift - 如何在Scenekit-iOS中检测两个不同.scn文件的节点之间的碰撞?

iOS SceneKit : XCode "breaks" imported DAE material colors

ios - 当应用程序从后台进入前台时,UITableViewCell 中的 UIButton 不保留图像?

ios - 如何快速制作带约束的动画?

ios - 是否可以仅根据峰值信息进行音频可视化?

ios - 适用于 3.5 和 4 英寸屏幕的应用程序底部的 iAd 横幅

ios - 当引用图像消失时,ARKit 会删除一个节点