日历 时间分段选择控制器

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

阅读更多
文章标签: 分段选择
个人分类: iOS常用
上一篇iOS子线程更新UI到主线程的三种方法
想对作者说点什么? 我来说一句

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

关闭
关闭
关闭