Added a Block as an alternative to the delegate, make the project work with iOS 6 (if we compile it with a previous version of the SDK, the useMotionEffects property will be ignored).