A custom image view that implements device motion scrolling
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Resource Add App Icon Jul 16, 2015
YXTMotionView Fix bugs Jul 16, 2015
YXTMotionViewDemo Fix bugs Jul 16, 2015
screenshot Add Screenshot gif Jul 16, 2015
.gitignore Add App Icon Jul 16, 2015
LICENSE Add License file Jul 16, 2015
README.md Update README Jul 16, 2015
YXTMotionView.podspec Add License file Jul 16, 2015

README.md

YXTMotionView

A custom image view that implements device motion scrolling

Installation

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.

Usage

  • 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];

Screenshot

screenshot

Requirements

  • iOS 7.0+
  • ARC
  • Core Motion

Contributing

Anyone who would like to contribute to the project is more than welcome.

  • Fork this repo
  • Make your changes
  • Submit pull request

License

YXTMotionView is released under the MIT license.

Based on

CRMotionView

Contact

Hanton Yang (hanton.yang@gmail.com)