iOS
-
Carthage 설치방법 (Xcode13)iOS 2021. 11. 4. 12:46
안녕하세요 썸머입니다🏝 주로 cocoapods을 사용해서 프레임워크를 사용해왔는데요 빌드 속도가 빠르다는 카르타고를 사용해보았습니다🙌 xcode버전 관련해서 설치하는데 이슈가 생겨 설치방법을 포스팅했습니다. Carthage 설치방법 (Xcode13) 1. carthage 설치 // 카르타고를 설치한 적이 없을 때 $ brew install carthage // 설치가 된 경우 $ brew upgrade carthage 2. Cartfile 생성 프로젝트( .xcodeproj)가 있는 폴더에 Cartfile을 생성합니다. 제 프로젝트 이름은 PhoneBookApp입니다. $ ls PhoneBookApp PhoneBookApp.xcodeproj $ vi Cartfile // 아래 내용을 입력해주세요. $ c..
-
Autolayout (2) - CHCR PriorityiOS 2021. 10. 27. 09:20
Autolayout이란 Auto Layout dynamically calculates the size and position of all the views in your view hierarchy, based on constraints placed on those views. 즉, Autolayout은 View의 크기와 위치를 제약조건(constraints)들을 사용하여 동적으로(dynamic) 결정합니다. 우리는 Autolayout을 사용해서 다양한 화면 크기에 대응할 수 있습니다. Intrinsic Content Size The natural size for the receiving view, considering only properties of the view itself. 아래 예시를 통해서 살..
-
Autolayout (1) - ConstraintsiOS 2021. 10. 23. 22:18
Autolayout이란 Auto Layout dynamically calculates the size and position of all the views in your view hierarchy, based on constraints placed on those views. 즉, Autolayout은 View의 크기와 위치를 제약조건(constraints)들을 사용하여 동적으로(dynamic) 결정합니다. 우리는 Autolayout을 사용해서 다양한 화면 크기에 대응할 수 있습니다. Constraint 뷰를 동적으로 구성하게 하는 제약조건은 여러가지 속성을 가지고 있습니다. 이 중에서 근본적인 속성은 4가지입니다. 바로 상하좌우! ⬆️ 상: top 뷰가 위로부터 부터 떨어진 거리 ⬇️ 하: bottom..
-
Delegate PatterniOS 2021. 10. 11. 00:59
Delegate Pattern Delegate란? Asynchronous Programming Mechanisms 중 하나! "delegate를 그대로 해석해서 위임자, 다시 말해 대신해서 일을 처리해준다" 라고 알고 있었다. 그러나, article과 군옥수수수의 블로그 글을 보며 You use delegates to interact with Cocoa objects that inform you of events in an app. 델리게이트는 어떤 객체가 해야 하는 일을 부분적으로 확장해서 대신 처리를 한다. Delegate를 구현한다고 해서 어떤 객체의 일을 완전히 처리해주지는 않는다는 것을 알게 되었다. 구현방법 Sender 에서 일어나는 이벤트에 관한 코드를 Receiver에서 작성한다. 즉, S..