Skip to content

truongvinht/GSRotationMotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GSRotationMotion iOS

The GSRotationMotion class allows to handle shake rotation easily.

Install Instruction

  1. Import the GSRotationMotion.h and GSRotationMotion.m into your project.

  2. make sure that the CoreMotion.framework and UIKit.framework is in the project

  3. Implement "GSRotationMotionDelegate" in your header

  4. Implement the method "finishedMotion" in the main class

  5. start the the GSRotationMotion with: GSRotationMotion *motion = [[GSRotationMotion alloc] init]; motion.delegate = self; [motion startDetect];

  6. For stopping it call the "[motion stopDetect]"

It only works on device with gyroscope (minimum iOS 4 and tested on iOS 5) !!!

About

A simple shake rotation manager for iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published