Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (BOOL) isGyroscopeAvailable
- {
- #ifdef __IPHONE_4_0
- CMMotionManager *motionManager = [[CMMotionManager alloc] init];
- BOOL gyroAvailable = motionManager.gyroAvailable;
- [motionManager release];
- return gyroAvailable;
- #else
- return NO;
- #endif
- }
Add Comment
Please, Sign In to add comment