UIPickerViewDataSource 프로토콜을 따르면 반드시 구현해야 하는 메소드로써 해당 컬림의 줄 개수를 반환합니다.
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
'헉!! > iOS' 카테고리의 다른 글
[iOS 개발] UIPickerViewDataSource Protocol Reference (6) | 2011.09.14 |
---|---|
[iOS 개발] UIPickerViewDelegate Protocol Reference (0) | 2011.09.14 |
[iOS 개발] pickerView:numberOfRowsInComponent (0) | 2011.09.14 |
[iOS 개발] TableView를 사용할 경우 행이 선택되었는지 확인해주는 메소드 (1) | 2011.08.04 |
[iOS 개발] IBAction을 사용하여 View 전환하기 (4) | 2011.07.22 |
[iOS 개발] 테이블 생성 및 글자 넣어 출력해보기 (0) | 2011.07.21 |
YOUR COMMENT IS THE CRITICAL SUCCESS FACTOR FOR THE QUALITY OF BLOG POST