博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS 日期时间控件
阅读量:7086 次
发布时间:2019-06-28

本文共 743 字,大约阅读时间需要 2 分钟。

UIDatePicker *picker        =   [[UIDatePicker alloc]initWithFrame:CGRectMake(0, 0,[UIParam widthScreen] ,50 )];        picker.minimumDate          =   [NSDate date];    picker.maximumDate          =   nil;    picker.backgroundColor      =   [UIColor whiteColor];    picker.layer.borderColor    =   [kUIColor(238, 238,238) CGColor];    picker.layer.borderWidth    =   1;    [picker addTarget:self action:@selector(dateChange:) forControlEvents:UIControlEventValueChanged];    NSLocale *locale            =   [[NSLocale alloc] initWithLocaleIdentifier:@"zh_CN"];        picker.locale               =   locale;        //设置日期的显示格式    picker.datePickerMode       =   UIDatePickerModeDateAndTime;

 

转载于:https://www.cnblogs.com/SimonGao/p/4554858.html

你可能感兴趣的文章
Memory Notification: Library Cache Object loaded into SGA
查看>>
jvm监控总结
查看>>
改变tableView的背景
查看>>
ansible批量管理远程服务器
查看>>
搭建网页邮件服务器
查看>>
CSS的选择器
查看>>
本人暂时没有文章
查看>>
Oracle用户权限表的管理方法
查看>>
你应该知道的原型图工具Mockplus(摩客)
查看>>
linux
查看>>
从iOS 11看怎样设计APP图标
查看>>
面试:进程调度的任务、机制和方式
查看>>
终于注册好博客了,兴奋
查看>>
我的友情链接
查看>>
mysql批量insert
查看>>
位图图像处理控件ImageCapture Suite更新至v9.1
查看>>
Oracle常用命令
查看>>
我的友情链接
查看>>
spring 工具类简介02
查看>>
I/O基础理论
查看>>