Latest 0.1
Homepage https://github.com/hanton/YXTMotionView
License MIT
Platforms ios 8.0, requires ARC
Authors

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 ([email protected])

Latest podspec

{
    "name": "YXTMotionView",
    "version": "0.1",
    "summary": "A Custom Image View That Implements Device Motion Scrolling",
    "homepage": "https://github.com/hanton/YXTMotionView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Hanton Yang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hanton/YXTMotionView.git",
        "tag": "0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "YXTMotionView/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This