How to Check if Parallax is enabled

前端 未结 3 1971
再見小時候
再見小時候 2020-12-17 00:55

I am making a wallpaper app and would like to check if a user has parallax enabled on his iOS 7 device. Is there a way in objective-C that I can check that? Has Apple grante

3条回答
  •  遥遥无期
    2020-12-17 01:55

    As of iOS 8:

    // Returns whether the system preference for reduce motion is enabled
    UIKIT_EXTERN BOOL UIAccessibilityIsReduceMotionEnabled() NS_AVAILABLE_IOS(8_0);
    UIKIT_EXTERN NSString *const UIAccessibilityReduceMotionStatusDidChangeNotification NS_AVAILABLE_IOS(8_0);
    

    For anything earlier than iOS 8, I don't think there's a legit way to tell.

提交回复
热议问题