MVC
-
[Stanford Lecture] MVCStanford iOS Lecture 2020. 4. 13. 23:37
# What is MVC design pattern ? Divide objects in your program into 3 “camps”. model = What your application is (but not how it is displayed)어떻게 보여주는지가 아니라 그냥 무엇인지를 알려줌 controller = How your Model is presented to the user (UI logic) 모델이 스크린에 어떻게 표현되는지 알려줌 view = Your Controller’s minions 컨트롤러가 화면에 무언가를 보여줄 때 사용 # 캠프 간의 소통 컨트롤러는 모델을 통제 모델은 앱을 설계하는 쪽에 가까움 모델을 설계하려면 앱이 근본적으로 무엇을 하는지 생각 사용자에게 어떻게 보여질..