Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanton/YXTMotionView
A custom image view that implements device motion scrolling
https://github.com/hanton/YXTMotionView
Last synced: about 1 month ago
JSON representation
A custom image view that implements device motion scrolling
- Host: GitHub
- URL: https://github.com/hanton/YXTMotionView
- Owner: hanton
- License: mit
- Created: 2015-06-29T03:46:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T11:41:01.000Z (over 9 years ago)
- Last Synced: 2024-11-28T12:37:30.628Z (about 2 months ago)
- Language: Objective-C
- Homepage: https://github.com/hanton/YXTMotionView
- Size: 8.54 MB
- Stars: 78
- Watchers: 7
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - YXTMotionView - A custom image view that implements device motion scrolling. (Media / Image)
- awesome-ios-star - YXTMotionView - A custom image view that implements device motion scrolling. (Media / Image)
README
# YXTMotionView
## A custom image view that implements device motion scrollingInstallation
-----**CocoaPods**
* Add the dependency to your Podfile:
```ruby
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:
```objc
#import "YXTMotionView.h"
```
```objc
YXTMotionView *motionView = [[CRMotionView alloc] initWithFrame:self.view.bounds];
[motionView setImage:[UIImage imageNamed:@"Image"]];
[self.view addSubview:motionView];
```Screenshot
----------![screenshot](https://github.com/hanton/YXTMotionView/blob/master/screenshot/YXTMotionView.gif)
Requirements
----------
* iOS 7.0+
* ARC
* Core MotionContributing
----------
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
CRMotionViewContact
----------
Hanton Yang ([email protected])