¡@

Home 

2014/10/15 ¤U¤È 10:15:20

iphone Programming Glossary: uiinterpolatingmotioneffect

How to Check if Parallax is enabled

http://stackoverflow.com/questions/20361033/how-to-check-if-parallax-is-enabled

Gabriele's answer there seems to be no way to read the value directly. As a workaround you could exploit the fact that UIInterpolatingMotionEffect does something if motion is as default but does nothing if reduce motion is enabled. So use a custom UIView class and attach.. is as default but does nothing if reduce motion is enabled. So use a custom UIView class and attach an instance of UIInterpolatingMotionEffect immediately at application start. Set a flag if the property is changed. Check that flag later. There may be some other.. self.superview add motion effects if they're not already attached attach both to the centre property if _effectGroup UIInterpolatingMotionEffect horizontalMotionEffect UIInterpolatingMotionEffect alloc initWithKeyPath @ center.x type UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis..