프로젝트
GitHub에서 보기
clayallsopp/ShotBlocker
소개
Detecting iOS screenshots ala Snapchat and Facebook Poke
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalShotBlocker
Detecting iOS screenshots ala Snapchat and Facebook Poke.
Current technique is to poll the user's camera roll and check for new screenshot-esque images; if you would like to add another technique, definitely submit a pull-request!
Usage
[[ShotBlocker sharedManager] detectScreenshotWithImageBlock:^(UIImage *screenshot) {
NSLog(@"Screenshot: %@", screenshot);
}];
// Later on...
[[ShotBlocker sharedManager] stopDetectingScreenshots];
Also available are:
detectScreenshotWithBlock:^()detectScreenshotWithBlock:^() andErrorBlock:^(NSError * error){}detectScreenshotWithImageBlock:^(UIImage *screenshot) andErrorBlock:^(NSError * error){}
The NSError will occur if the user denies your app access to their photos.
Installation
CocoaPods
pod 'ShotBlocker'
#import <ShotBlocker/ShotBlocker.h>
Xcode
- Add ShotBlocker as a git submodule. Here's how to add it as a submodule:
$ cd rootOfYourGitRepo
$ git submodule add https://github.com/clayallsopp/ShotBlocker.git Vendor/ShotBlocker
$ git submodule update --init --recursive
Add
ShotBlocker/ShotBlocker.handShotBlocker/ShotBlocker.mto your project, but don't copy the files (so the location is relative).Add
AssetsLibrary.frameworkto your project
#import "ShotBlocker.h"
Contact
관련 프로젝트 살펴보기
불러오는 중…