본문 바로가기

Mobile

[iOS] Javascript console.log 찍는 방법 Cordova를 이용해 개발 중 Web에 console.log() 의 경우 Android에서는 디버그로 볼 수 있지만 iOS 에서 보이지 않는 현상이 발생하기와 같이 코드를 추가해 주면 xcode console에서 해당 로그를 볼 수 있음 #import - (void)webViewDidFinishLoad:(UIWebView*)theWebView{ NSLog(@"Finished load of: %@", theWebView.request.URL); JSContext *ctx = [theWebView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"]; ctx[@"console"][@"log"] = ^(JSValue * msg) { NSL..
[iOS] Guideline 2.3.3 - Performance - Accurate Metadata 앱 심사 등록 하기와 같이 이유로 리젝을 당함 1.0 바이너리가 거부됨2019년 1월 12일Guideline 2.3.3 - Performance - Accurate Metadata We noticed that your screenshots do not sufficiently reflect your app in use. Guideline 2.3.3 - Performance - Accurate Metadata We noticed that your screenshots do not sufficiently reflect your app in use. Specifically, your 5.5-inch iPhone screenshots do not display the actual app in use. 스플래시 이..
[Android] 다이얼로그를 이용 유저가 동의하면 액티비티가 종료 사용자가 뒤로가기 버튼을 누르는 경우 onBackPressed()라는 메소드가 호출 됨해당 메소드에서 하기와 같이 적용하면 다이얼로그가 발생하면 funish() 메소드로 어플을 종료할 수 있음 @Override public void onBackPressed() { new AlertDialog.Builder(this) .setIcon(android.R.drawable.ic_dialog_alert) .setTitle("Closing Activity") .setMessage("App을 종료하시겠습니까?") .setPositiveButton("종료", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dial..
[iOS] javascript click event 오류 iOS에서 WebView 이용해서 개발 중 빠르게 터치시 ckick 이벤트가 발생하지 않는 현상이 발생 var bClick = false; $(static_parent).on("mousedown", element, function () { bClick = true; }).on("mouseup", element, function () { if(bClick) { bClick = false; // 실행 코드 }}); 또는 $(static_parent).on('touchstart touchend click', function(evt) { if(evt.type == 'touchstart') { $(this).data('touch', 1); $(this).css('background-color', '#f00'); ..
[iOS] iTunse Connect 앱 미리보기 및 스크린샷 사이즈 iOS 앱 iTunse Connect에 등록시 필요한 앱 미리보기 및 스크린샷 사이즈 ※ 앱 미리보기 사이즈- 앱 미리보기는 스토어에서 앱 소개 영상을 넣고자 할때 사용합니다. Video SpecificationsH.264 formatProRes 422 (HQ only) formatTarget bit rate10-12 MbpsVBR ~220 MbpsVideo characteristicsProgressive, up to High Profile Level 4.0Progressive, no external referencesMax frame rate30 frames per second30 frames per secondAudioStereoCodec: 256kbps AACSample Rate: 44.1kHz o..
[iOS] 프로그램 역할 및 App Store Connect 역할 프로그램 역할 및 App Store Connect 역할Apple Developer Program, Apple Developer Enterprise Program 또는 iOS Developer University Program에 등록하면 자동으로 본인의 계정에 대한 Team Agent(팀 에이전트)가 됩니다. 조직으로 등록했다면 팀에 개발자를 추가할 수 있는 옵션이 있습니다.심사를 위해 앱을 제출한다면 App Store Connect에서도 팀을 설정해야 합니다. 개인 또는 조직으로 등록되었는지에 상관없이 App Store Connect 팀에 사람을 추가할 수도 있습니다.역할에 관하여Apple Developer Program 팀 역할에 따라 본인의 계정 및 Certificates, Identifiers & ..
[Android] 맥북에서 android Home 설정 vi ~/.bash_profile => bash_profile 을 수정 모드로 열어서 하기 데이터 적용 export ANDROID_HOME=/Users/$USER/Library/Android/sdk/ export PATH=$PATH:$ANDROID_HOME export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/platform-tools
압축 풀기 final int BUFFER_SIZE = 4096; BufferedOutputStream bufferedOutputStream = null; FileInputStream fileInputStream; try { fileInputStream = new FileInputStream(src); ZipInputStream zipInputStream = new ZipInputStream(new BufferedInputStream(fileInputStream)); ZipEntry zipEntry; while ((zipEntry = zipInputStream.getNextEntry()) != null) { String zipEntryName = zipEntry.getName(); File file = new Fil..