Conforms to | |
Framework |
/System/Library/Frameworks/UIKit.framework
|
Availability |
Available in iOS 2.0 and later.
|
Declared in |
UIPickerView.h
|
The UIPickerViewDataSource
protocol must be adopted by an object that mediates between a UIPickerView
object and your application’s data model for that picker view. The data source provides the picker view with the number of components, and the number of rows in each component, for displaying the picker view data. Both methods in this protocol are required.
Called by the picker view when it needs the number of components. (required)
The picker view requesting the data.
The number of components (or “columns”) that the picker view should display.
UIPickerView.h
Called by the picker view when it needs the number of rows for a specified component. (required)
The picker view requesting the data.
A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.
The number of rows for the component.
UIPickerView.h
[iOS 개발] 네비게이션바의 배경색(background color)을 바꾸기 위한 메소드 (0) | 2011.09.15 |
---|---|
[iOS 개발] 네비게이션 타이틀 이름을 지정 (1) | 2011.09.15 |
[iOS 개발] UIPickerViewDelegate Protocol Reference (0) | 2011.09.14 |
[iOS 개발] pickerView:numberOfRowsInComponent (0) | 2011.09.14 |
[iOS 개발] TableView를 사용할 경우 행이 선택되었는지 확인해주는 메소드 (1) | 2011.08.04 |