CocoaPods
- Add the dependency to your Podfile:
platform :ios
pod 'YXTMotionView'
...
- Run
pod install
to install the dependencies.
Source files
Just clone this repository or download it in zip-file. Then you will find source files under YXTMotionView directory. Copy them to your project.
- Import the header file to your view controller:
#import "YXTMotionView.h"
YXTMotionView *motionView = [[CRMotionView alloc] initWithFrame:self.view.bounds];
[motionView setImage:[UIImage imageNamed:@"Image"]];
[self.view addSubview:motionView];
- iOS 7.0+
- ARC
- Core Motion
Anyone who would like to contribute to the project is more than welcome.
- Fork this repo
- Make your changes
- Submit pull request
YXTMotionView is released under the MIT license.
CRMotionView
Hanton Yang (hanton.yang@gmail.com)