일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Demystify SwiftUI
- consuming a restful web service
- WWDC21
- TabBarItems
- git branch strategy
- xml delegate
- Structural Identity
- Lazy
- spring guide
- Xcode
- swift
- Spring
- 적절한 사용방법
- frame이해
- lazy 위험성
- Explict Identity
- lifecycle
- ios login
- Lifetime of SwiftUI
- bounds이해
- Your app is missing support for the following URL schemes: your_ios_client_id
- schemes
- Quick Help
- developer
- Identity
- 보라색오류
- lazy 사용
- ios
- view
- native개발
- Today
- Total
목록swift (8)
Dev_Dylan

MVC는 개체가 각각 Model, View, Controller 3가지중 하나의 역할을 하며, 서로 통신 하는 방식을 정의한다. 모델-뷰-컨트롤러 뷰컨트롤러에서의 View와 Controller의 역할을 모두한다. View 가 Model을 알면 안된다? 기본적인 MVC 구조 Action의 흐름 User 의 Action 입력 (User → View) Action을 Controller가 인지 (View → Controller) Controller가 사용자의 Action을 토대로 Model의 데이터를 조작(변경) (Controller → Model) Model이 변경됨에 따라 View를 update (Model → Controller → View Update) Model 특정 데이터를 캡슐화 데이터 조작 및 처..

ViewController에 버튼을 추가해서 배열에 담기 최초 StoryBoard 에서도 혹은, 코드로 UIButton을 선언해도 같은 오류가 난다. Cannot use instance member 'button' within property initializer; property initializers run before 'self' is available 오류 코드에 보면 [인스턴스 맴버인 버튼을 초기화 없이 사용 할 수 없다] 라고 나온다. Lazy 키워드로 해결 buttons 배열에 lazy를 사용해서 ERROR를 해결한다. lazy키워드를 이용해 동시에 호출되는 것을 방지한다. 즉, 각각의 button1,button2,button3 와 이를 포함하는 [buttons] 배열을 동시에 호출되지 않도..