我试图使用Swift项目中的以下方法与给定的参考框架,但得到一个错误“类型'CMAttitudeReferenceFrame'没有成员'CMAttitudeReferenceFrameXArbitraryCorrectedZVertical'”
manager.startDeviceMotionUpdates(using: CoreMotion.CMAttitudeReferenceFrame.CMAttitudeReferenceFrameXArbitraryCorrectedZVertical, to: .main)
想法?
manager.startDeviceMotionUpdates(using: CoreMotion.CMAttitudeReferenceFrame.xArbitraryCorrectedZVertical, to: .main)