On iOS 7 the user can choose disable device motion in Settings -> General -> Accessibility -> Reduce Motion.
I am creating a UI effect based on UITableView scrolling, so I am not using CMMotionManager
or the CoreMotion
framework to create any motion effects.
However, I would like to respect the user's settings and not create the motion effect if the user has turned on Reduce Motion
in Settings.
CMMotionManager
includes an instance method deviceMotionActive
to check for whether it's active (I'm assuming this is the correct check), however, I'd prefer not having to initialize the manager just to do this check, sadly I cannot find any documentation about a class method that would return a similar boolean, sort of like there exist class methods on MFMessageComposeViewController
to check for iMessage/SMS availability (+(BOOL)canSendText
) and so on.
Thanks!