본문 바로가기
iOS 문서

[한글 번역] View Controller Programming Guide for iOS - The Role of View Controllers (1)

by 초가을우엉차 2022. 6. 5.

The Role of View Controllers

 ▶  뷰컨트롤러의 역할

 

 

1. View controllers are the foundation of your app’s internal structure.

 ▶  뷰 컨트롤러는 여러분 앱 내부 구조의 기초입니다.

 

2. Every app has at least one view controller, and most apps have several.

 ▶  모든 앱에는 적어도 하나의 보기 컨트롤러가 있으며 대부분의 앱에는 여러 개가 있습니다.

 

3. Each view controller manages a portion of your app’s user interface as well as the interactions between that interface and the underlying data.

 ▶  각 뷰 컨트롤러는 앱 사용자 인터페이스의 일부는 물론 해당 인터페이스와 기본 데이터 간의 상호 작용을 관리합니다. 

 

4. View controllers also facilitate transitions between different parts of your user interface.

 ▶  뷰 컨트롤러는 또한 사용자 인터페이스의 다른 부분 간의 전환을 용이하게 합니다.

 

5. Because they play such an important role in your app, view controllers are at the center of almost everything you do.

 ▶  앱에서 매우 중요한 역할을 하기 때문에 뷰 컨트롤러는 거의 모든 작업의 ​​중심에 있습니다.

 

6. The UIViewController class defines the methods and properties for managing your views, handling events, transitioning from one view controller to another, and coordinating with other parts of your app.

 ▶  UIViewController 클래스는 view들을 관리하고, 이벤트를 처리하고, 한 뷰 컨트롤러에서 다른 뷰 컨트롤러로 전환하고, 앱의 다른 부분과 조정하기 위한 메서드와 속성을 정의합니다.

 

7. You subclass UIViewController (or one of its subclasses) and add the custom code you need to implement your app’s behavior.

 ▶  UIViewController(또는 그 하위 클래스 중 하나)를 하위 클래스로 만들고 앱의 동작을 구현하는 데 필요한 사용자 정의 코드를 추가합니다.

 

8. There are two types of view controllers:

  • Content view controllers manage a discrete piece of your app’s content and are the main type of view controller that you create.
  • Container view controllers collect information from other view controllers (known as child view controllers) and present it in a way that facilitates navigation or presents the content of those view controllers differently.

 ▶  보기 컨트롤러에는 두 가지 유형이 있습니다. 

  • 콘텐츠 뷰 컨트롤러는 앱 콘텐츠의 개별 부분을 관리하며 사용자가 만드는 주요 유형의 뷰 컨트롤러입니다.
  • 컨테이너 뷰 컨트롤러다른 뷰 컨트롤러(자식 뷰 컨트롤러라고 함)에서 정보를 수집하고 탐색을 용이하게 하거나, 해당 뷰 컨트롤러의 콘텐츠를 다르게 표시하는 방식으로 정보를 제공합니다.

 

9. Most apps are a mixture of both types of view controllers.

 대부분의 앱은 두 가지 유형의 뷰 컨트롤러가 혼합되어 있습니다.

 


출처

 

View Controller Programming Guide for iOS: The Role of View Controllers

View Controller Programming Guide for iOS

developer.apple.com

 

댓글