Ios 如何从Swift引用CmatitudeReferenceName.CmatitudeReferenceFrameXarbitraryCorrectedZvertical

Ios 如何从Swift引用CmatitudeReferenceName.CmatitudeReferenceFrameXarbitraryCorrectedZvertical,ios,swift,core-motion,Ios,Swift,Core Motion,我试图在给定参考框架下使用Swift项目中的以下方法,但得到一个错误“Type'CmatitureReferenceName“没有成员”CmatitureReferenceFrameXarbitraryCorrectedZvertical” 想法?在Swift中,大多数想法都是不必要的。仅当本地和导入的符号名称冲突时,才需要添加模块名称(或多个导入的模块。和枚举常量可以使用隐式成员查找。因此,调用中的第一个参数可以是,使用:.xArbitraryCorrectedZVertical。大多数参数在

我试图在给定参考框架下使用Swift项目中的以下方法,但得到一个错误“Type'CmatitureReferenceName“没有成员”CmatitureReferenceFrameXarbitraryCorrectedZvertical


想法?

在Swift中,大多数想法都是不必要的。仅当本地和导入的符号名称冲突时,才需要添加模块名称(或多个导入的模块。和枚举常量可以使用隐式成员查找。因此,调用中的第一个参数可以是
,使用:.xArbitraryCorrectedZVertical
。大多数参数在Swift中是不必要的。仅当本地和导入的模块之间存在符号名冲突时,才需要添加模块名(或多个导入的模块。和枚举常量可以使用隐式成员查找。因此,调用中的第一个参数可以是
,使用:.xArbitraryCorrectedZVertical
manager.startDeviceMotionUpdates(using: CoreMotion.CMAttitudeReferenceFrame.CMAttitudeReferenceFrameXArbitraryCorrectedZVertical, to: .main)
manager.startDeviceMotionUpdates(using: CoreMotion.CMAttitudeReferenceFrame.xArbitraryCorrectedZVertical, to: .main)