프로젝트
GitHub에서 보기 
christianroman/CRMotionView
소개
Facebook Paper에서 영감을 받은 맞춤형 사진 뷰어로, 기기의 움직임에 따라 스크롤됩니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalCRMotionView
A custom photo viewer that implements device motion scrolling, inspired by Facebook Paper.

Installation
CocoaPods
- Add the dependency to your Podfile:
platform :ios
pod 'CRMotionView'
...
- Run
pod installto install the dependencies.
Source files
Just clone this repository or download it in zip-file. Then you will find source files under CRMotionView directory. Copy them to your project.
Usage
- Import the header file to your view controller:
#import "CRMotionView.h"
- Create an instance
CRMotionView *motionView = [[CRMotionView alloc] initWithFrame:self.view.bounds];
- Set an image...
[motionView setImage:[UIImage imageNamed:@"Image"]];
- ... or set a generic view
UIView *myView = [UIView alloc] init...
[motionView setContentView:myView];
- Add to your view
[self.view addSubview:motionView];
- Additionally, if you need to disable motion
[motionView setMotionEnabled:NO];
- Full example:
CRMotionView *motionView = [[CRMotionView alloc] initWithFrame:self.view.bounds];
[motionView setImage:[UIImage imageNamed:@"Image"]];
[self.view addSubview:motionView];
Example

Requirements
- iOS 6.0 or higher
- ARC
- Core Motion
Bugs
- UIScrollView's scroll bar indicator align not handled correctly in some cases.
- Device landscape orientation (Both, iPhone and iPad).
Contributing
Anyone who would like to contribute to the project is more than welcome.
- Fork this repo
- Make your changes
- Submit a pull request
License
CRMotionView is released under the MIT license. See LICENSE.
Contact
Christian Roman
관련 프로젝트 살펴보기
불러오는 중…



