代码库> 日历> datePickerView
datePickerView
关注
上传者:王肖蒙 分类:日历(Calendar)
查看次数:1979 下载次数:593
上传时间:2017-04-08 大小:76 B
-(void)creatDatePicker
{
__weak NextViewController * weakself=self;
self.datePicker =[[[NSBundle mainBundle] loadNibNamed:@"DatePickerView" owner:self options:0] lastObject];
self.datePicker.frame =CGRectMake(0, self.view.frame.size.height-260, self.view.frame.size.width, 260);
self.datePicker.Datetitle =@"日期选择";
self.datePicker.cancelBlock = ^{
[UIView animateWithDuration:5 animations:^{
[weakself.datePicker removeFromSuperview];
}];
};
self.datePicker.sureBlock = ^(NSString *selectDateStr) {
[weakself.showDateLabel setText:selectDateStr];
[UIView animateWithDuration:5 animations:^{
[weakself.datePicker removeFromSuperview];
}];
};
[self.view addSubview:self.datePicker];

}

哪里需要直接调用此方法即可
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
本周热门下载
综合评论
提示
sina weixin mail 回到顶部