CoreMotion - magneticField is always 0

后端 未结 1 1602
[愿得一人]
[愿得一人] 2020-12-21 04:21

I\'m trying to use magnetometer:

[myMotionMngr startDeviceMotionUpdatesToQueue: [NSOperationQueue currentQueue]
                                  withHandler         


        
相关标签:
1条回答
  • 2020-12-21 04:46

    try

    startDeviceMotionUpdatesUsingReferenceFrame:toQueue:withHandler:

    it should work

    0 讨论(0)
提交回复
热议问题