<UIPickerViewDelegate>
返回UIPickerView中Component列的宽度 - (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component; 返回UIPickerView中Component列中每行的高度 - (CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:(NSInteger)component; 当选择某一项Component列中的row行时的回调函数 - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component; ///重要的(以下这两个方法只能二选一) 标准的UIPickerView内容,只有字符串 - (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component; 自定义的UIPickerView内容,给每个列,行设置一个UIView对象 - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view; ----这里列为component,行row返回一个UIView用来显示在UIPickerView中。reusingView:(UIView *)view是IOS内核传入一个缓存的UIView。在程序中可以不用分配UIView,而可以重用IOS传过来的view