본문 바로가기
[android] PDF file 읽는 방법 [android] PDF file 읽는 방법 https://commonsware.com/blog/2017/01/04/options-viewing-pdfs.html -ACTION_VIEW action Intent 를 통해 third-party app 으로 권한을 양도 -PdfRenderer 를 써서 직접 구현.https://developer.android.com/reference/android/graphics/pdf/PdfRenderer.html API Level 21 부터 사용할 수 있으나, Bitmap 으로 render 를 시키고, 사용하기가 어렵다.표준을 따른 일부 PDF 들만 rendering 가능하다는 약점이 있다. -pdf.jshttps://mozilla.github.io/pdf.js/ Mozi.. 2018. 3. 16.
[android] 잘 쓰지 않지만 유용한 android library 들 ( Spell Checker,Text Recognizer, TimeLogger, MediaProjection, PDF Creation ) [android] 잘 쓰지 않지만 유용한 android library 들 ( Spell Checker,Text Recognizer, TimeLogger, MediaProjection, PDF Creation ) https://blog.autsoft.hu/discovering-the-android-api-part-1/ Spell Checker -TextServicesManager 를 통해 접근 가능하며, API Level 14 부터 사용 가능하며, API Level 16 부터는 문장에 대해서도 check 가능하다. -TextServicesManager.newSpellCheckerSessionhttps://developer.android.com/reference/android/view/textservice/.. 2018. 3. 14.
[ios] .c 파일을 import 한 후 build 가 안 된다면 pch 파일을 확인해봐라. [ios] .c 파일을 import 한 후 build 가 안 된다면 pch 파일을 확인해봐라. pch 파일은 빌드할 때 매번 사용되는 녀석으로, c 를 컴파일 할 때도 사용된다.그래서 pch 파일에 objective-c 에서 사용하는 녀석에 대한 import 문이 있다면 compile 에러가 난다. pch 파일에서 아래와 같이 ifdef 구문으로 처리해주어야 한다. ( c 에서는 ObjectiveC 의 header 를 import 못하니깐 )#ifdef __OBJC__#import “ObjecitveCHeader.h"#endif #endif, #ifdef, .c import, build, C, Compile, compile error, endif, ifdef, import, Objective-C, PCH.. 2018. 1. 31.
[ios] Objective-C 와 Swift 동시에 사용하기 [ios] Objective-C 와 Swift 동시에 사용하기 https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html Swift Code 에서 Objective-C 코드 사용하기-Swift Code 에서 Objective-C 코드를 쓰려면, Objective-C bridging header 가 필요하다.Xocde 는 Objective-C app 에서 Swift file 을 추가할 때, 혹은 그 반대일 때 이를 쉽게 만들 수 있도록 도와준다. 이 과정을 통해 만들어진 header 파일은 [productModuleName]-Bridging-Header.h 파일명을 갖는다. 이.. 2017. 12. 2.
[Kotlin Tutorial] 함수 정의하고 호출하기 #1 - Chap 3. Defining and calling functions [Kotlin Tutorial] 함수 정의하고 호출하기 #1 - Chap 3. Defining and calling functions 참조 : Kotlin in Action 3.1. Creating collections in Kotlin -아래와 같이 쉽게 collection 을 만들 수 있다."type”Of 의 form 이다.val hashSet = hashSetOf(1, 7, 53) // mutableval set = setOf(“Gamza”, “Goguma”) // immutable val list = arrayListOf(1, 7, 53) // mutable val map = hashMapOf(1 to “one”, 7 to “seven”, 53 to “fifty-three”) // mutable/.. 2017. 8. 3.
[Kotlin Tutorial] Kotlin 기초 #1 - Chap2. Kotlin basics [Kotlin Tutorial] Kotlin 기초 #1 - Chap2. Kotlin basics 참조 : Kotlin in Action 2.1. Basic elements : Functions and variables 2.1.1. Hello, world! -fun main(args: Array){ println(“Hello, world!”)} fun 는 function 을 정의하는 keywordtype 은 variable 이름 다음에 옴function이 class 정의 안에 있지 않아도 된다Array 가 class 이다 ( Java 는 아니징 ) -> Kotlin 에서는 모든 것이 Object 이다System.out.println 대신 println; (semicolon) 넣을 필요 없다 ( option.. 2017. 7. 25.
[Effecitve Objective-C] #2 헤더에 헤더를 포함하는 것을 최소화하라 [Effecitve Objective-C] #2 헤더에 헤더를 포함하는 것을 최소화하라 출처 : Effective Objective-C - Objective-C 는 C, C++ 처음 헤더 파일과 구현 파일을 사용한다. Objective-C 로 클래스를 작성할 때 쓰는 표준적인 방법은 클래스 이름 뒤에 확장자가 .h 인 헤더 파일과 .m 인 구현 파일을 생성하는 것이다. // header #import @interface EOCPerson : NSObject @property (nonatomic, copy) NSString *nane @end // implementation #import “EocPerson.h" @implementation EOCPerson @end - Foundation.h 는 Obje.. 2017. 7. 17.
[iOS] 연락처 선택 modal 띄우기 [iOS] 연락처 선택 modal 띄우기 https://developer.apple.com/library/ios/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/Chapters/QuickStart.html#//apple_ref/doc/uid/TP40007744-CH2-SW1 1. #import 2. 프로토콜 선언 3. modal 띄우기ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];picker.peoplePickerDelegate = self;[self presentModalViewController:.. 2017. 6. 16.
[Django] 파이썬 웹 프로그래밍 - Django 웹 프레임워크 #1 [Django] 파이썬 웹 프로그래밍 - Django 웹 프레임워크 #1 -책을 읽으며 Remind 하는 내용, 핵심 내용, 모르던 내용을 정리한 것입니다. 예문 및 자세한 설명은 책을 구매하여 보세요~ -2003년 로렌스 저널-월드 신문을 만들던 웹 개발팀의 내부 프로젝트로 시작.2005년 오픈 소스 프로젝트로 공개.구글의 앱 엔진에서 장고를 사용하면서 많은 사람들이 사용.파이썬의 대표적인 웹 프레임워크로 자리매김. * MVC 패턴 기반 MTV -장고는 MVC 를 기반으로 한 프레임워크이다.장고에는 View 를 Template, Controller 를 View 라고 부른다.그래서 장고를 흔히 MTV(Model-Template,View) 프레임워크라 부른다. * 객체 관계 .. 2016. 12. 9.
반응형