Develop
2014.11.19 14:46
[ios] 스크린 캡쳐 (전원버튼 + 홈버튼) 호출 알아내기
조회 수 1658 댓글 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 // 스크린캡쳐후 처리 }
-
GPL, AGPL, MPL,.. 한눈에 보는 오픈소스SW 라이선스
-
[web] 더 빠른 웹을 위한 프로토콜, 'HTTP/2'
-
[android] 가속도 센서를 이용한 흔듦(Shake) 감지
-
[ios] 스크린 캡쳐 (전원버튼 + 홈버튼) 호출 알아내기
-
[ios] 비동기 블럭 코드 예제
-
ZBar 라이브러리를 이용한 바코드 스캔 앱 개발하기
-
[java] netty (비동기 이벤트 방식 네트워크 프레임워크) 사용법 #1 (server)
-
[java] netty (비동기 이벤트 방식 네트워크 프레임워크) 사용법 #2 (client)
-
[android] 안드로이드 동영상 스트리밍 예제
-
[ios] UIWebView를 이용한 로컬 HTML 파일 표시
-
[ios] UIView 계층구조
-
[ios] Thread Loop 내에서 UI 업데이트 방법