UIPickerView

Tabber·2021년 7월 31일
0

Apple Document

목록 보기
11/12

Class

A view that uses a spinning-wheel or slot-machine metaphor to show one or more sets of values.
회전 휠 또는 슬롯 머신 은유를 사용하여 하나 이상의 값 집합을 표시하는 보기입니다.

Overview

A picker view displays one or more wheels that the user manipulates to select items. Each wheel—known as a component—has a series of indexed rows representing the selectable items. Each row displays a string or view so that the user can identify the item on that row. Users select items by rotating the wheels to the desired values, which align with a selection indicator.
선택 도구 보기는 사용자가 항목을 선택하기 위해 조작하는 하나 이상의 휠을 표시합니다. 구성 요소로 알려진 각 휠에는 선택 가능한 항목을 나타내는 일련의 인덱스 행이 있습니다. 각 행에는 문자열 또는 보기가 표시되므로 사용자가 해당 행의 항목을 식별할 수 있습니다. 사용자는 휠을 원하는 값으로 회전하여 선택 표시기와 정렬하여 항목을 선택합니다.

You provide the data to be displayed in your picker view using a picker data source—an object that adopts the UIPickerViewDataSource protocol. Use your picker view delegate—an object that adopts the UIPickerViewDelegate protocol—to provide views for displaying your data and responding to user selections.
선택기 데이터 원본(UIPickerViewDataSource 프로토콜을 채택한 개체)을 사용하여 선택기 보기에 표시할 데이터를 제공합니다. UIPickerViewDelegate 프로토콜을 채택한 개체인 선택기 보기 대리자를 사용하여 데이터를 표시하고 사용자 선택에 응답하기 위한 보기를 제공합니다.

profile
iOS 정복중인 Tabber 입니다.

0개의 댓글