Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 782 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 782 Bytes

CCTimePickerDemo

时间选择器的另一种样子

如果觉得有用,不妨给个Star呗~

项目演示

image

使用方法

将CCTimePicker文件夹导入项目.

- (void)showTimePickerView{
    CCTimePickerView *pickerView = [CCTimePickerView viewFromXib];
    pickerView.delegate = self;
    pickerView.isAutoNext = YES;
    [pickerView setCurrentDate:[NSDate date]];
    
    [self.pickerView popInView:self.view];
}

#pragma mark CCTimePickerViewDelegate
- (void)pickerView:(CCTimePickerView *)timePickerView didSelectTime:(NSDate *)date
{
    NSLog(@"%@",date);
}

- (void)pickerViewCancelSelect:(CCTimePickerView *)timePickerView
{
    NSLog(@"取消");
}