본문 바로가기
[SQLite3] 01. SQLite 소개 [SQLite3] 01. SQLite 소개 이 글은 "빠르게 활용하는 모바일 데이터베이스 SQLite3” 이란 글을 보며 필요한 내용만 정리한 글입니다.자세한 내용은 책을 구매해서 보세요-SQLite3 는 안드로이드, 아이폰에서 채택되면서 모바일 환경에서 가장 널리 사용되는 DB 가 되었다. ( 파폭 브라우저, 드롭박스 등에서도 사용 )개발 초창기부터 임베디드 환경을 고려했기 때문에 SQLite3 는 다른 DB 의 대부분의 기능을 지원하면서도 상대적으로 라이브러리 크기가 작고, 메모리가 적은 환경에서도 뛰어난 성능을 발휘한다.오픈 소스 프로젝트이며, 특별한 라이선스 없이 무료로 사용 가능하다. 1. 주요 특징 단일 데이터베이스 파일 데이터베이스의 모든 정보가 단 하나의 파일에 저장된다.테이블 스키마, 레.. 2018. 5. 16.
[Xcode] how to find method(selector) reference? [Xcode] how to find method(selector) reference? reference : http://stackoverflow.com/questions/7145045/find-method-references-in-xcode Put the cursor on the selector(method), or something you want to check the reference, and the click the “Related file” icon on the left top corner of the editor area; which is shaped as 4 boxes gathered together. You can find the “caller” section in the middle. M.. 2018. 4. 10.
[Xcode] Jump to declaration shortcut [Xcode] Jump to declaration shortcut Put the keyboard cursor on the selector and “control + command + j”. You can also do it with the combination of mouse and keyboard.Put the mouse cursor on the selector and “command + click" helpful? Good luck! command click, control command j, IOS, xcode, xcode jump to declaration shortcut, xcode shortcut, [Xcode] Jump to declaration shortcut 2018. 4. 9.
[iOS] 앱이 지원하는 File Type 등록하고 처리하기 [iOS] 앱이 지원하는 File Type 등록하고 처리하기 -https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html#//apple_ref/doc/uid/TP40010411-SW1 CFBundleDocumentTypes 를 Info.plist 에 포함시켜야 한다.이 key 에 대한 값은 dictionary 의 array 형태를 갖는다.각 dictionary 는 처리할 파일에 대한 정보를 갖는다.한 dictionary 에 여러 개의 파일 타입을 정의할 수도 있다.. 2018. 2. 20.
[ios] 32bit, 64bit 이야기 [ios] 32bit, 64bit 이야기 https://developer.xamarin.com/guides/cross-platform/macios/32-and-64/ -전통적인 iOS 는 원래 완전히 32bit 였다.그러나 최근의 iOS 는 모두 64bit 을 지원한다. -64bit 를 사용한다는 것은 사용 가능한 memory space 를 확장한다는 의미 이외에도더 좋은 performance 를 낼 수 있다는 장점도 있다. -32bit only application 은 32bit, 64bit iOS device 모두에서 작동한다. -32bit, 64bit application 은 32bit, 64bit code 모두를 가지고 있다.그래서 시스템이 어떤 녀석을 작동시킬지 결정해서 수행한다. -64bit .. 2018. 2. 18.
[ios] NSInteger, NSUInteger on 32bit / 64bit [ios] NSInteger, NSUInteger on 32bit / 64bit -32bit 에서.. NSInteger, NSUInteger 는 각각 int, unsigned int 에 mapping 된다.그래서 로그를 찍을 때 formmatting char 에는 %d 와 %u 에 각각 매핑된다. -64bit 에서는... NSInteger, NSUInteger 는 각각 long 과 unsinged long 에 mapping 된다.그래서 로그를 찍을 때 formmatting char 에는 %ld 와 %lu 에 각각 매핑된다. -bit 에 상관없이 formmatting char 를 가장 안전하게 사용하는 방법은NSInteger, NSUInteger 를 NSNumber 로 converting 해서 %@ 형태로.. 2018. 2. 17.
[ios] NSCocoaErrorDomain Code=522 ( SQLite ) [ios] NSCocoaErrorDomain Code=522 ( SQLite ) 출처 : http://stackoverflow.com/questions/18277092/persistentstorecoordinator-sqlite-error-code522-not-an-error -SQLite 의 Error code 522 는 SQLITE_IOERR_SHORT_READ 를 의미한다. -SQLITE_IOERR_SHORT_READ 는 SQLITE_IOERR 중 하나로 VFS layer 를 통해 read 를 할 때,요청한 byte 만큼 읽지 못했을 경우 발생한다.이 현상이 발생한 이유는 db file 이 망가졌을 때(corrupted) 주로 발생한다.혹은 간헐적으로 read 도중 interrupt 가 발생했을 때.. 2018. 2. 12.
[ios] App Version 가져오기 [ios] App Version 가져오기 [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey] app version 가져오기, IOS, kCFBundleVersionKey, nsbundle, objectForInfoDictionaryKey, [ios] App Version 가져오기 2018. 2. 5.
[ios] Gallary ( Photo Album) Permission 체크 [ios] Gallary ( Photo Album) Permission 체크 #import "AssetsLibrary/AssetsLibrary.h" // 권한 체크[ALAssetsLibrary authorizationStatus] > kCLAuthorizationStatusDenied // 권한 요청ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];[library enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos usingBlock:^(ALAssetsGroup *group, BOOL *stop) { // do something with success *stop = YES;} failureBlock:^(NSErro.. 2018. 2. 3.
반응형