vendredi 14 août 2015

How to take CMDeviceMotion updates in multiple handlers?

Apple says: You should only create a single instance of CMMotionManager to get accurate data.

What if I want to start the device motion updates when the app starts and then take the updatesToQueue at multiple places.

Scenario is something like this:

App starts - Start device motion updates without handler

ClassA - Start device motion updates to queue at a particular time.

ClassB - Start device motion updates to queue at a particular time.

Stop device motion updates when required.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire