日历 时间分段选择控制器

PGDatePickManager *datePickManager = [[PGDatePickManager alloc]init];

    PGDatePicker *datePicker = datePickManager.datePicker;

    datePicker.delegate = self;

    datePicker.datePickerMode = PGDatePickerModeDateAndTime;

    [self presentViewController:datePickManager animated:false completion:nil];



#pragma mark -选择完时间回调

- (void)datePicker:(PGDatePicker *)datePicker didSelectDate:(NSDateComponents *)dateComponents {

    NSLog(@"dateComponents =【 %@】", dateComponents);

    NSDateComponents * Components =[[NSDateComponents alloc]init];

    Components =dateComponents;

   

    

}



代码下载地址:https://github.com/QiuDongChang694509/PGDatePickerMode

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页