본문 바로가기
[android] Messaging Style Notification Tutorial https://blog.stylingandroid.com/nougat-messaging-style-notifications/ -Bundled Notification 이란 녀석은 Notification 들을 각각 만들고, Notification framework 를 사용하여 grouping 을 하는 개념이라면,Messaging Style Notification 은 Notification 하나에 여러 Message 를 담는 것을 의미한다. -Messaging Style Notification 은 Nougat 부터 사용 가능하다. -NotificationCompay.MessagingStyle messagingStyle = buildMessageList(messages);Notification notificat.. 2018. 3. 1.
[ios] CallKit - CallDirectoryExtension [ios] CallKit - CallDirectoryExtension 참조 : https://developer.apple.com/reference/callkit -CallKit framework 는 VoIP 앱이 일반 전화를 쓰는 것처럼 UX 를 가져갈 수 있게 해준다.LockScreen 에서 incoming call 에 대한 view 를 보고 응답도 할 수 있다.VoIP 에서 Favorite 과 최근 통화 뷰도 다룰 수 있다. -CallKit 은 app extension 형태( CallDirectory )로 수신차단과 발신자 정보 표시(caller identification) 기능을 사용할 수도 있다. -CXCallDirectoryExtensionContext : NSExtensionContext - .. 2018. 2. 7.
[ios] 압축, 압축해제 ( archive, unarchive ) [ios] 압축, 압축해제 ( archive, unarchive ) -framework 에 있는 zlib.h 를 사용하면 압축, 압축해제가 가능하다.그러나 native (c level) code 를 다뤄야 하기 때문에 & 여러 예외 사항을 대응해야 하기 때문에 3rd party library 를 사용하는 것이 추천된다. -gzip 은 GNU zip 의 약자로, 압축과 압축해제를 지원하는 유틸리티를 이야기한다.gzip 은 다른 기존의 특허받은 알고리즘에 비해 더 압축을 잘 한다는 평이 있다.생성된 파일은 .gz 확장자를 갖는다. -ios 에서 주로 사용되는 open source library 는 ziparchive ( miniZip 에 기반을 둠 ) https://code.google.com/archive.. 2018. 1. 30.
[android] odex 에 대해 알아보자. [android] odex 에 대해 알아보자. -Android 앱은 ZIP 형태로 압축된 apk 에 담겨져 있다.이 apk 파일을 압축해제해보면 classes.dex 라는 파일이 있는데, 이 파일에 code 가 들어 있다.이 파일이 Dalvik JVM 에 의해 parse 가 되고, Dalvik cache 에 저장이 된다. ( /data/dalvik-cache/ 폴더에 저장 )parse & cache save 과정 때문에 최초 실행은 조금 오래 걸릴 수 있는 것이다. -odex 는 classes.dex 의 pre-processed 된 버전이라고 볼 수 있다.즉 Dalvik 이 바로 실행될 수 있는 형태의 dex 라고 보면 된다.앱이 odex 화되면, apk 압축파일에서 classes.dex 는 제거되고, .. 2018. 1. 24.
[Objective-C] Objective-C 프로그램 [Objective-C] Objective-C 프로그램 출처 : OS X 구조를 이해하면서 배우는 Objective-C Chap 2. Notice : 정리자(돼지왕 왕돼지)가 remind 하고 싶은 내용이나 모르는 내용 기반으로 정리하는 것이기 때문에 구체적인 내용은 책을 사서 보시기를 권장드립니다. 2.1. 객체와 메시지 * 2.1.1. 메시지 표현식 * 2.1.2. 메시지 셀렉터 -함수명(메서드명)을 메시지 셀렉터(message selector) 또는 셀렉터(selector) 라고도 부른다. -인수가 있는 키워드는 콜론도 셀럭터에 포함되므로 주의즉 copy 와 copy: 는 다른 셀렉터. -메시지 키워드는 변수의 명명규칙에 따라 이름을 지으며, 소문자로 시작하는 것이 관례 -메시지에 인수가 있으면 메.. 2017. 12. 24.
[android] Firebase JobDispatcher 문제.. (Job 미실행) [android] Firebase JobDispatcher 문제.. (Job 미실행) - 글을 쓰는 현재 시점 Firebase JobDispatcher ( 이하 FJD ) 는 0.8.5 version - 현재 발생하는 문제는 N 미만 버전 ( not including N ) Google Play Service(이하 GPS) 가 최신버전이 아니면 제대로 동작하지 않는다. 현재 가장 최신 버전 GPS 11.7.44 에서는 제대로 동작하지만.. 심지어 17.05.18 release 된 11.0.47 에서는 Schedule 한 job 이 불리지 않는다… 심각하다.. - JobScheduler 자체는 LOS 부터 사용이 가능하기 때문에, L 미만에서는 Service + Broadcast + AlarmManager.. 2017. 12. 5.
[ios/tutorial] CABasicAnimation, CATransition, CAKeyframeAnimation, CALayer, CAAnimationGroup ( Core Animation ) [ios/tutorial] CABasicAnimation, CATransition, CAKeyframeAnimation, CALayer, CAAnimationGroup ( Core Animation ) http://warmz.tistory.com/entry/Core-Animation-CABasicAnimation-CAKeyframeAnimation-CATransition-CAAnimationGroup -위 블로그가 CoreAnimation 전체에 대해 잘 정리해놓았다.아래 섹션은 각각의 Part 에 대해 조금 더 세세한 정보를 추가해 놓은 것. CABasicAnimation https://developer.apple.com/library/mac/documentation/GraphicsImaging/Ref.. 2017. 12. 1.
[ios] Umbrella Framework? Umbrella Header? [ios] Umbrella Framework? Umbrella Header? https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html -Umbrella Framework 는 표준 Framework 와 비슷하다.Umbrella Framework 는 header file 들을 include 하고 있다.그리고 subframework 들을 encapsulate 한다. -Umbrella framework 는 내부의 구현을 잘 숨겨서 필요한 interface 만 제공할 수 있고,precompiled header 를 사용해 build 도 더 빨리 할 수 있는 장점이 있.. 2017. 11. 27.
[ios/tutorial] Core Data - Initializing the Core Data Stack [ios/tutorial] Core Data - Initializing the Core Data Stack https://developer.apple.com/library/watchos/documentation/Cocoa/Conceptual/CoreData/InitializingtheCoreDataStack.html#//apple_ref/doc/uid/TP40001075-CH4-SW1 -Core data stack 은 core data 를 초기화하고, external data store 와 app 사이를 중재하는 역할을 하는 framework 집합을 이야기한다. -stack 은 다음 세 가지로 구성된다. NSManagedObjectContextNSPersistentStoreCoordinatorNSMana.. 2017. 11. 3.
반응형