Swift'de hareket yöneticisini kullanmaya çalışıyorum ancak güncelleme blokumun içindeki günlük hiçbir zaman yazdırmıyor.Motion Manager, Swift uygulamasında çalışmıyor
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
Amacım-C uygulaması iyi çalışıyor. Güncelleme bloğumun neden çağrılmadığını bilen var mı?