6.16 UIPickerView
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:
(NSInteger)component;
// 返回数据
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row
forComponent:(NSInteger)component;
// 返回列宽度
- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:
(NSInteger)component;
//返回行高度
- (CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:
(NSInteger)component;
<UIPickerViewDataSource, UIPickerViewDelegate>
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component //每一列行数
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
//每当选择一行就会调用
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
// 返回第component列每一行的高度