Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIViewController #8

Closed
MoSonLee opened this issue Aug 16, 2022 · 0 comments
Closed

UIViewController #8

MoSonLee opened this issue Aug 16, 2022 · 0 comments

Comments

@MoSonLee
Copy link
Owner

  • UIKit안에 있는 UIViewController는 무엇일까?
  • 또 애플 공식 문서를 확인해보자(이번엔 영어를 해석하기 싫으니 구글에게 맡겨보자)
  • image
  • 간단히 �단어 뜻 그대로 해석해보면 앱의 View(뷰)를 + Controller(관리) 해주는 객체라고 보면 된다.
  • 모든 어플리케이션은 최소 하나 이상의 뷰 컨트롤러로 구성되어 있는 것을 볼 수 있다.
  • image
  • 일반적으로 하나의 View <-> ViewController가 짝을 이룬다고 생각하면 된다.
  • 자 그러면 뷰를 관리한다는 것은 알겠다? 그렇다면 뷰의 무엇을 관리하는걸까?
  • 예를 들어View에 이미지를 넣어줬다고 가정 -> 이미지 크기 변경 or 이미지를 눌렀을 때 다른 이미지 대치, 등 우리는
  • 처음 짠 뷰를 있는 그대로 계속 유지하는 경우는 많지 않다. 뷰의 변경, 혹은 action등을 처리해주는 곳이라고 보면 된다.
  • 이해하기 쉽게 해석해봤지만 애플 공식 문서에는 더 상세하고 깊이 있게 나와 있다.!
  • https://developer.apple.com/documentation/uikit/uiviewcontroller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant