본문 바로가기

Programming40

xcode swift print 디버그 모드일때만 동작하게 하기 Under what circumstances? Under Xcode 12.2 With Swift5 How to do? It's very simple way to be disable print function. If you are developing using Swift, it doesn't matter which swift file. Please insert the code below. In my case, I inserted it at the top of the AppDelegate. import UIKit import CoreData ... func print(_ items: Any...) { #if DEBUG Swift.print(items[0]) #endif } @UIApplicat.. 2021. 3. 25.
SwiftUI 하면서 생긴 오류 정리 오류 #1 failedToGetInstalledApplicationInfoAfterInstalling 해결책 #1 build clean 2019. 10. 20.
Javascript Tip 1. 해당 dom element 의 innerHtml = '' 를 수행한후, 해당 dom element 에 대한 접근이 수행될경우, ( element.clientWidth ) dom element 는 기존의 dom element 의 값을 재 계산하게된다. 이로인해, 만일 스크롤된 화면에서, 작업을 수행하다가 위의 절차를 진행하는 순간, 스크롤이 위로 올라간다. 왜냐면, height 가 0 이 되면서, scrollTo(0,0) 의 효과를 갖게 된다. 2019. 4. 27.
Google Calendar API 휴일데이터 받아오기. 1. API 키 발급. ( 다른 인증을 사용해도 좋다. ) https://console.developers.google.com/apis/dashboard?project=quickstart-1552639953833&folder=&organizationId= 2. 구글 아이디로 로그인 후, 구글 캘린더에 원하는 국가의 휴일을 추가한다. ( 필수 ) 3. calendarList list api 를 통해서, 현재 나의 캘린더 리스트를 받아온다. https://developers.google.com/calendar/v3/reference/calendarList/list?apix_params=%7B%7D CalendarList: list | Calendar API | Google Developers Requires.. 2019. 4. 9.
반응형