티스토리 뷰
UIPickerViewDataSource Protocol Reference
Conforms to | |
Framework |
/System/Library/Frameworks/UIKit.framework
|
Availability |
Available in iOS 2.0 and later.
|
Declared in |
UIPickerView.h
|
Overview
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.
Instance Methods
numberOfComponentsInPickerView:
UIPickerViewDataSource 프로토콜의 필수 메소드로써, 컴포넌트의 수를 반환합니다.
Called by the picker view when it needs the number of components. (required)
Parameters
- pickerView
The picker view requesting the data.
Return Value
The number of components (or “columns”) that the picker view should display.
Availability
- Available in iOS 2.0 and later.
Declared In
UIPickerView.h
pickerView:numberOfRowsInComponent:
Called by the picker view when it needs the number of rows for a specified component. (required)
Parameters
- pickerView
The picker view requesting the data.
- component
A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.
Return Value
The number of rows for the component.
Availability
- Available in iOS 2.0 and later.
Declared In
UIPickerView.h
'헉!! > iOS' 카테고리의 다른 글
[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 |
- Total
- Today
- Yesterday
- oracle
- 자바스크립트
- 아이폰 어플리케이션
- Spring
- Objective-C
- zero
- iPhone
- 아이폰 개발
- 오브젝트 C
- SQL
- iOS 개발
- 오블완
- IT
- tomcat
- 오브젝티브 C
- Java
- Object C
- 티스토리챌린지
- MAC OSX 10.7
- 아이폰
- 자바
- jQuery
- JavaScript
- 제이쿼리
- Programming
- Spring Framework
- JSP
- iBATIS
- Objective C
- MySQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |