如何从Swift中引用CMAttitudeReferenceFrame.CMAttitudeReferenceFrameXArbitraryCorrectedZVertical

问题描述 投票:1回答:1

我试图使用Swift项目中的以下方法与给定的参考框架,但得到一个错误“类型'CMAttitudeReferenceFrame'没有成员'CMAttitudeReferenceFrameXArbitraryCorrectedZVertical'”

manager.startDeviceMotionUpdates(using: CoreMotion.CMAttitudeReferenceFrame.CMAttitudeReferenceFrameXArbitraryCorrectedZVertical, to: .main)

想法?

ios swift core-motion
1个回答
0
投票
manager.startDeviceMotionUpdates(using: CoreMotion.CMAttitudeReferenceFrame.xArbitraryCorrectedZVertical, to: .main)
© www.soinside.com 2019 - 2024. All rights reserved.