Develop
2014.11.19 14:46
[ios] 스크린 캡쳐 (전원버튼 + 홈버튼) 호출 알아내기
조회 수 2705 댓글 0
# Objective-C
// Objective-C
NSOperationQueue *mainQueue = [NSOperationQueue mainQueue];
[[NSNotificationCenter defaultCenter]
addObserverForName:UIApplicationUserDidTakeScreenshotNotification
object:nil
queue:mainQueue
usingBlock:^(NSNotification *notification) {
// 스크린캡쳐후 처리
}];# Swift
// Swift
let mainQueue = NSOperationQueue.mainQueue()
NSNotificationCenter.defaultCenter().addObserverForName(
UIApplicationUserDidTakeScreenshotNotification,
object: nil,
queue: mainQueue)
{
notification in
// 스크린캡쳐후 처리
}-
[ios] UIWebView를 이용한 로컬 HTML 파일 표시
-
[android] 안드로이드 동영상 스트리밍 예제
-
CentOS 에서 Cacti 설치하기
-
[java] netty (비동기 이벤트 방식 네트워크 프레임워크) 사용법 #2 (client)
-
[java] netty (비동기 이벤트 방식 네트워크 프레임워크) 사용법 #1 (server)
-
[svn] 하나의 SVN에서 멀티 저장소 (One svnserve, multiple repositories)
-
ZBar 라이브러리를 이용한 바코드 스캔 앱 개발하기
-
iptime 공유기 해킹 기술문서
-
[svn] Can't convert string from native encoding to 'UTF-8' 메시지가 나오는 경우
-
[svn] SVN trunk 변경사항 되돌리기 (SVN Rollback)
-
[ios] 비동기 블럭 코드 예제
-
[ios] 스크린 캡쳐 (전원버튼 + 홈버튼) 호출 알아내기