github:https://github.com/7General/HZSheetView
调用代码
CustomDatePicker * pickerView = [[CustomDatePicker alloc] initWithSureBtnTitle:@'取消' otherButtonTitle:@'确定']; pickerView.delegate = self; pickerView.dataSource = self; [pickerView show];代理
<CustomDatePickerDataSource,CustomDatePickerDelegate>代理函数
@protocol CustomDatePickerDataSource <NSObject> @required /**设置行数数量*/ -(NSInteger)CpickerView:(UIPickerView *)pickerView numberOfRowsInPicker:(NSInteger)component; @optional /**设置每行的显示富文本字体*/ - (NSAttributedString *)CpickerView:(UIPickerView *)pickerView attributedTitleForRowTtile:(NSInteger)row forComponent:(NSInteger)component; /**设置每行返回的view*/ - (UIView *)CpickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(nullable UIView *)view; @end @protocol CustomDatePickerDelegate <NSObject> /**设置每行高度*/ -(CGFloat)CpickerView:(UIPickerView *)pickerView rowHeightForPicker:(NSInteger)component; -(void)CpickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component; /**确定按钮单击事件*/ -(void)CpickerViewdidSelectRow:(NSInteger)row; @end有问题可以联系:QQ:1290925041