분류 전체보기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. 이전 1 ··· 22 23 24 25 26 27 28 ··· 36 다음 728x90