Fixed the code to compile on iOS 6

Please note, that UIMotionEffect is not defined on iOS 6, so you can not use [UIMotionEffect class]