Develop
2014.11.19 14:46
[ios] 스크린 캡쳐 (전원버튼 + 홈버튼) 호출 알아내기
조회 수 1561 댓글 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 // 스크린캡쳐후 처리 }
-
[js] 자바스크립트 이벤트 핸들..
-
[js] 자바스크립트 메뉴얼 사이트.. ㅋㅋ
-
[js] 자바스크립트 escape()를 PHP로 받기
-
[js] 인터넷 주소(URL) 인코딩 ㅋㅋ
-
[js] 이벤트 핸들러(Event Handlers)
-
[js] 이벤트 전파 3단계
-
[js] 이미지 사이즈를 동적으로 조절..
-
[js] 이미지 미리 로딩하기
-
[js] 윤동이가 만든 영어 학습(?) 프로그램
-
[js] 윈도우 시작버튼처럼 나오는 메뉴
-
[js] 웹페이지에서 특정 엘리먼트 드래그, 복사, 컨텍스트메뉴, 키보드 막기
-
[js] 여러가지 트리(tree) 모음.. ㅋㅋ