전체 글324 [iOS] CocoaPods 사용법 guides.cocoapods.org/using/using-cocoapods.html CocoaPods Guides CocoaPods is fully open-sourced, so it depends on community contributions to get better. If you're looking to start working on CocoaPods, this is the place to start. guides.cocoapods.org cocoapods은 공홈이 잘 설명해뒀다. 하지만 매번 공홈에 가서 찾아보긴 귀찮으니까 정리해두는 아주 간단한 내용 우선 초기 설치는 다 했다 치고 새로운 라이브러리 추가할때 1. 프로젝트 안에 Podfile을 연다.(텍스트 편집기로 열어도 되고 terminal.. 2021. 4. 7. [iOS] Core data copy(backup, archive) & restore with iCloud gist.github.com/atomicbird/25fed73657be4b9d3642981a4892fea4 Back up and restore Core Data persistent stores Back up and restore Core Data persistent stores. GitHub Gist: instantly share code, notes, and snippets. gist.github.com core data를 백업하고 복원하는데 필요한 NSPersistentContainer 를 확장하는 코드는 위 링크에 있다. 너무 자료가 없어서.. 난 그냥 원문 읽어가면서 했는데 혹시 나같은 사람있을까봐 써둡니다. www.atomicbird.com/blog/core-data-back-up-store/ .. 2021. 4. 2. [Mac, IntelliJ]Mac에서 인텔리제이(Java) 단축키 현재 파일 실행 : control + shift + r 실행 : control + r Generate 단축키 : control + Enter 적절한 위치로 엔터 : shift + Enter 매개변수 보기 : command + p 코드 자동 정렬 : option+command+l 코드 둘러싸기(?) (surround with) : option + command + t 계속 추가 예정 2021. 3. 16. mac OS 에서 IntelliJ update 하기 아주 간단합니다 인텔리제이 실행 후 좌측 상단바의 인텔리제이 클릭 > Check for Updates 클릭 > Update 어쩌구 클릭 끝 이렇게 했는데 만약에 버전이 하나밖에 업데이트가 안된다면 같은 과정 한번 더 하기 2021. 3. 14. [iOS] UICollectionViewDelegateFlowLayout 적용 UICollectionViewDelegateFlowLayout 상속받아 메서드 구현했는데 셀 사이즈나 기타 등등이 적용이 안될때 스토리보드 가서 collectionView의 사이즈 인스펙터에서 Estimate Size를 Automatic으로 설정되어 있을텐데 None으로 바꿔줘야 코드에서 구현한 내용이 반영됨! 2021. 3. 13. how to join hackthebox you can see that page when you click 'join now' button. the hint was not helpful for me. first, use web browser developer tools and go console section. I entered "makeInviteCode()" it was just my attempt. then you can see the codes of that function. you can get some 'data' encrypted. and also encryption type maybe ROT13. i think, it can be different by case. so now decode the data with encryptio.. 2021. 3. 10. [iOS] Core Data fetchRequest.predicate ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ 제발 다들 predicate 썼으면 fetchRequest 재선언하세요이ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ let fetchRequest = NSFetchRequest(entityName: "EntityName") 이거 꼭 하셔라 ㅠㅠㅠㅠㅠㅠ 싱글포키 개발 끝!!!!!!!!!!!!!!!악 신나!!!!!! 2021. 3. 9. [iOS] swift tab bar 와 tool bar tab bar는 서로 독립적인 아이템들일때 사용 바로 이 앱처럼 toolbar는 현재 뷰에서 보여지는 것과 관련있는 기능일 때 사용 바로 여기에서 얘네처럼 2021. 3. 8. [iOS] swift tab bar 사용시 presentingViewController 하나의 뷰 컨트롤러에서 다른 뷰컨트롤러를 modal로 띄웠을때 sheet로 띄우는 설정이었다면 그 전 뷰 컨트롤러가 presentingViewController가 되는데 tab bar controller를 이용하게 되면 presentingViewController가 UITabBarController가 된다. 그래서 현재 뷰를 dismiss할때 ViewController의 viewDidLoad를 해야하는데 못하는 상황 발생.. 해결 방법은 TabBarController의 children을 사용하면 된다..!! 스택오버플로우 찾아보면서 똑같은 질문이 있어서 답변을 봤는데 거기엔 definesPresentationContext를 true로 하고 modalPresentationStyle를 current cont.. 2021. 3. 8. [iOS] 아이패드에서 UIAlertController actionSheet사용시 오류 "Your application has presented a UIAlertController () of style UIAlertControllerStyleActionSheet from App.ViewController (). The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a b.. 2021. 3. 4. [백준 1475] 알고리즘 93일차 : 방 번호 www.acmicpc.net/problem/1475 1475번: 방 번호 첫째 줄에 다솜이의 방 번호 N이 주어진다. N은 1,000,000보다 작거나 같은 자연수 또는 0이다. www.acmicpc.net C++ 구현 오늘은 2020-21 동계 알고리즘 스터디 마지막날 하지만 쉬어갑니다 :) 6과 9를 뒤집어서 이용할 수 있다는 점이 포인트인 문제 접근방법 기본적으로는 모든 숫자들이 필요한 개수를 배열에 저장하고 그 중에 가장 큰 값이 필요한 숫자 세트의 개수이다. 근데 6과 9는 예외적으로 생각해줘야하니까 마지막에 6의 개수를 저장하고 있는 곳에 9의 개수를 더하고 2로 나눈후 올림해준다. 그리고 9의 개수를 저장하고 있는 곳의 값을 0으로 바꿔준다. 그리고 나서 0부터 9까지의 숫자 개수 중 가장 .. 2021. 2. 26. [백준 1158] 알고리즘 92일차 : 요세푸스 문제 www.acmicpc.net/problem/1158 1158번: 요세푸스 문제 첫째 줄에 N과 K가 빈 칸을 사이에 두고 순서대로 주어진다. (1 ≤ K ≤ N ≤ 5,000) www.acmicpc.net C++ 큐 이번주 후반부는 쉬어갑시다 접근 방법 K번째 사람을 큐에 순서대로 넣고 마지막에 큐에서 빼면서 출력했다. 아직 큐에 넣지 않은 사람(방문하지 않은 인덱스)이 나올때마다 cnt++을 해주고 cnt가 k가 되면 그 사람을 큐에 넣고 cnt를 0으로 초기화했다 인덱스가 n의 범위를 넘어가면 안되므로 i = (i+1)%n으로 해줬다. 오답노트 i를 증가시키는 코드를 if문 안에 넣어놔서 무한루프가 돌았었다. 소스코드 #include #include using namespace std; bool vi.. 2021. 2. 25. 이전 1 ··· 16 17 18 19 20 21 22 ··· 27 다음 728x90