티스토리 뷰


UIPickerViewDataSource Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/UIKit.framework
Availability
Available in iOS 2.0 and later.
Declared in
UIPickerView.h
Related sample code

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)

- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView
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)

- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
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
댓글
  • 프로필사진 BlogIcon 작가 남시언 본격적으로 불사르는거임?ㅋㅋㅋ 2011.09.14 22:40 신고
  • 프로필사진 BlogIcon 권태성 불사지르는 정도는 아니고 ㅎㅎ 천천히 하고있네요 ㅠ 2011.09.15 21:23 신고
  • 프로필사진 BlogIcon Cheap Watches Watches these days serve the purpose of showing time and also add to the overall look of a person. This is one reason why most people have many watches and wear them depending on the occasion, whether it is formal, informal or a party. Watches should also match the attire of a person and shouldn't look out of place. This means rich attire goes well with a posh watch while a more funky and cool attire would need a trendy but cheap watch. One can find many fashionable but cheap watches, some branded while others not branded. 2011.09.19 18:33
  • 프로필사진 BlogIcon 권태성 아이구 시계 광고구먼 2011.09.20 01:16 신고
  • 프로필사진 BlogIcon replica jordan shoes Hey, this is annie, i know you from facebook before, you can contact me by email, i hope we can be friend in future. 2013.01.01 10:49
  • 프로필사진 BlogIcon moncler online People want to nail the best holiday deals to enjoy some lovely days in order to have fun and some change moments in their lives. But some people are successful in doing so while some family in enjoying such chances because of the lack of proper information and even place, http://www.moncleroutletespain.com/ moncler chaquetas. Well, if you are thinking to go for a holiday tour, you can visit Cheap Holiday Discount Travel UK to have a look at various holiday deals. We offer budget to luxurious holiday deals as per the need of the people, http://www.moncleroutletespain.com/ http://www.moncleroutletespain.com/. When you visit our website, you don, http://www.moncleroutletespain.com/ moncler outlet?t have to spend any extra money if you just want to avail information about any holiday tour and its expenses, http://www.moncleroutletespain.com/ moncler. All these details are offered free of cost and so, you can enjoy them without any worry. Well, http://www.moncleroutletespain.com/ moncler españa, life is full of pain and headaches, you can?t clear off all of the problems but you can minimize them by booking cheap holiday packages, http://www.moncleroutletespain.com/ moncler online.Related articles:


    http://pmosic.tistory.com/74 http://pmosic.tistory.com/74

    http://nmap.tistory.com/88 http://nmap.tistory.com/88
    2013.01.04 13:39
댓글쓰기 폼