error: package android.support.v4.* does not exist
·
Mobile Application/Android
기존 프로젝트를 이전할 때 생기는 오류 해결법- [build.gradle] 파일에서 compileSdkVersion을 28이상으로 설정한다.android { compileSdkVersion 28 defaultConfig { : :- [gradle.properties]파일에서 android.useAndroidX=trueandroid.enableJetifier=true코드를 추가한다. - 오른쪽 상단에 sync now 누르고 빌드한다  참조 사이트 https://developer.android.com/reference/android/support/v4/util/package-summary.html?hl=ko
Android Studio:: 함수 및 명령어 자동완성
·
Mobile Application/Android
자주 사용하는 함수나 명령어를 빠르고 쉽게 사용하는 방법  Android Studio에서 File -> Setting  ① Editor -> Live Templates② Abbreviation (축약형) : 사용 할 축약단어③ Description : 함수에 대한 간단한 설명④ Define : 어느 곳에서 사용할지 설정해줌(아래 이미지 처럼 저는 전체에서 사용하게끔  "Everywhere"로 하였습니다)    에디터 창에서 사용한 해보면 아래와 같이 나옵니다.>> ankomodu.. 이라고 치면 자동으로 검색이됩니다.
Android Studio:: Anko 라이브러리 추가하기
·
Mobile Application/Android
- Anko 라이브러리 -  먼저 안드로이드 프로젝트를 생성한 후   1. 프로젝트 창에서 build.gradle (Module:app) 파일을 더블 클릭합니다에디터 창이 열리면 아래와 같이 추가합니다.   implementation "org.jetbrains.anko:anko:$anko_version" ※ 자주 사용하므로 "abbreviation"으로 만들어주면 편합니다. ("abbreviation" 만드는 방법은 다음 글에 올렸습니다)  2. 다시 프로젝트 창으로 돌아와서 build.gradle (Project: 프로젝트이름) 파일을 더블 클릭합니다   에디터 창이 열리면 아래와 같이 추가해주세요   ext.anko_version = '0.10.5'  3. 추가 한 후 싱크를 해야 합니다.  에디터 ..
[Xcode] NSLog Debug모드에서만 출력 (한번만 명령어)
·
Mobile Application/iOS
http://mingu.kr/60
[Android Studio] NDK build 환경 in Mac
·
Mobile Application/Android
- iMac 64bit OS X Yosemite- android-ndk-r10-darwin-x86_64.bin Android NDK Download-> http://developer.android.com/tools/sdk/ndk/index.html#Installing >> 설치1. 다운로드 받은 파일 경로로 이동2. chmod a+x android-ndk-r10c-darwin-x86_64.bin3. ./android-ndk-r10c-darwin-x86_64.bin  >> Android Studio 설정1. Android Studio Project Create or Open2. src/main에 jni폴더와 libs Directory 만들기3. android-ndk-r10d -> samples -> hel..
[Xcode6] arm64에서 Build할때 Value 오류
·
Mobile Application/iOS
32bitlong* value = (long*) [characteristic.value bytes]; //-> (long *) value = 0x12345678  64bitlong* value = (long*) [characteristic.value bytes]; //-> (long *) value = 0x0000000123456780   각각 빌드하였을때 값이 달라진 경우 #ifdef __LP64__NSLog(@"64-bit");int* value = (int*) [characteristic.value bytes];#elseNSLog(@"32-bit");long* value = (long*) [characteristic.value bytes]; #endif 으로 수정해준다.   참조: http://ip..
[iOS] swipe로 tableViewcell Delete할때 죽는 문제 (UITableViewCellEditingStyleDelete)
·
Mobile Application/iOS
UITableViewCellEditingStyleDelete모드에서 swipe로 cell을 삭제할때 간헐적으로 죽는 문제 -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{............ dispatch_async(dispatch_get_main_queue(), ^{[tableView reloadData];});}  thread로 처리.