Swift でモーション マネージャーを使用しようとしていますが、更新ブロック内のログが印刷されません。
var motionManager: CMMotionManager = CMMotionManager()
motionManager.accelerometerUpdateInterval = 0.01
println(motionManager.deviceMotionAvailable) // print true
println(motionManager.deviceMotionActive) // print false
motionManager.startDeviceMotionUpdatesToQueue(NSOperationQueue.currentQueue(), withHandler:{
deviceManager, error in
println("Test") // no print
})
println(motionManager.deviceMotionActive) // print false
私の Objective-C の実装は問題なく動作します。私の更新ブロックが呼び出されない理由を誰か知っていますか?