UIPickerViewDelegate

Tabber·2021년 7월 31일
0

Apple Document

목록 보기
12/12

Protocol

The delegate of a UIPickerView object must adopt this protocol and implement at least some of its methods to provide the picker view with the data it needs to construct itself.
UIPickerView 개체의 대리인은 이 프로토콜을 채택하고 선택 도구 보기에 자체적으로 구성해야 하는 데이터를 제공하기 위한 일부 방법을 구현해야 합니다.

Overview

The delegate implements the required methods of this protocol to return height, width, row title, and the view content for the rows in each component. It must also provide the content for each component’s row, either as a string or a view. Typically the delegate implements other optional methods to respond to new selections or deselections of component rows.

See UIPickerView for a discussion of components, rows, row content, and row selection.
위임자는 높이, 너비, 행 제목 및 각 구성요소의 행에 대한 보기 내용을 반환하는 이 프로토콜의 필수 방법을 구현합니다. 또한 각 구성 요소의 행에 대한 내용을 문자열 또는 보기로 제공해야 합니다. 일반적으로 대리인은 구성 요소 행의 새로운 선택 또는 선택 취소에 응답하는 다른 선택적 방법을 구현합니다.

구성 요소, 행, 행 내용 및 행 선택에 대한 자세한 내용은 UIPickerView를 참조하십시오.

Setting the Content of Component Rows

func pickerView(UIPickerView, titleForRow: Int, forComponent: Int) -> String?

Called by the picker view when it needs the title to use for a given row in a given component.
지정된 구성 요소의 지정된 행에 사용할 제목이 필요한 경우 선택 도구 보기에 의해 호출됩니다.

profile
iOS 정복중인 Tabber 입니다.

0개의 댓글