본문 바로가기
반응형

분류 전체보기232

[iOS] UIScrollView 스크롤 시 키보드 내리기 (Dismissing the keyboard in a UIScrollView) 📄 Dismissing the keyboard in a UIScrollView Swift Source Code scrollView.keyboardDismissMode = .interactive OR scrollView.keyboardDismissMode = .onDrag OR scrollView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive; OR scrollView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag; 📄 Dismissing the keyboard in a UIScrollView Delegate Swift Source Code func scrollViewWillB.. 2019. 8. 1.
[Android] ButterKnife Proguard 설정하기 (How to configure Proguard settings for ButterKnife?) 📄 build.gradle Source Code android { ... lintOptions { disable 'InvalidPackage' } packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' } ... } 📄 ProguardFiles [proguard-project.txt, proguard-rules.pro] Source Code # butter knife -keep class butterknife.** { *; } -dontwarn butterknife.internal.** -keep class **$$ViewBinder { *; } -keepclasseswithmembernames class *.. 2019. 8. 1.
[프로그래머스 - 구현] 다트 게임 (for kakao) 📄 [구현] 다트 게임 C++ Source Code #include #include #include #include #include #include using namespace std; #define MAX_N 3 const int findDigit(int index, const string dartResult) { deque digit; while (--index >= 0) { if (dartResult[index] 57) { break; } digit.push_front(dartResult[index]); } const string value = string(digit.begin(), digit.end()); return std::stoi(value).. 2019. 7. 31.
[프로그래머스 - 비트마스크] 비밀지도 카테고리 게시글 작성 날짜 게시글 최근 수정 날짜 작성자 Algorithm 2019.07.30. 13:24 2022.02.16. 22:44 Dev.Yang 네오는 평소 프로도가 비상금을 숨겨놓는 장소를 알려줄 비밀지도를 손에 넣었다. 그런데 이 비밀지도는 숫자로 암호화되어 있어 위치를 확인하기 위해서는 암호를 해독해야 한다. 다행히 지도 암호를 해독할 방법을 적어놓은 메모도 함께 발견했다. 지도는 한 변의 길이가 n인 정사각형 배열 형태로, 각 칸은 "공백"(" ") 또는 "벽"("#") 두 종류로 이루어져 있다. 전체 지도는 두 장의 지도를 겹쳐서 얻을 수 있다. 각각 "지도 1"과 "지도 2"라고 하자. 지도 1 또는 지도 2 중 어느 하나라도 벽인 부분은 전체 지도에서도 벽이다. 지도 1과 지도 2.. 2019. 7. 30.
반응형