bahome / bapickview Goto Github PK
View Code? Open in Web Editor NEW自定义 pickView,多种自定义样式!git 最全的日期选择器!
License: MIT License
自定义 pickView,多种自定义样式!git 最全的日期选择器!
License: MIT License
让时间只到当前月份,如2017年6月,7月以后的不显示.
设置最大日期是2019-01-07,最小日期是当天,然后先滑动月份到12月,再滑动年份,年份为2019年,然后月份自动跳转为1月份,然后选择日的时候数字可以超过7
代码中有问题,如果是dateType是非 BAKit_PickerViewDateTypeYMDEHMS的,将不回显示
点击打开时,选择默认index显示。 用的是哪个接口
Apple says "Starting May 1: You'll need to include approved reasons for the listed APIs used by your app's code to upload a new or updated app to App Store Connect."
Please add privacy policy otherwise we couldn't use this library.
在X上有点问题
1、pickerview的日期中如果先滑动3月31日,在滑动到2月,2月的日期有更新,不滑动日期的话,点击确定会显示2月31号、在滚动的年月的时候没有更新日期。
2、自定义pickerview中,滑动的联动效果体验很差,没有原生pickerview的流畅,可以对比参照一下,建议滚动完一级之后再滚动二级,类推、最好把动画去掉,有动画总感觉有一下卡顿。
在自定义DatePicker中
// 自定义:最大最小日期格式
if (type == BAKit_CustomDatePickerDateTypeYMD)
{
NSDateFormatter *format = [NSDateFormatter ba_setupDateFormatterWithYMD];
NSDate *today = [[NSDate alloc]init];
[format setDateFormat:@"yyyy-MM-dd"];
// 最小时间,当前时间
mindDate = [format dateFromString:[format stringFromDate:today]];
NSTimeInterval oneDay = 24 * 60 * 60;
// 最大时间,当前时间+180天
NSDate *theDay = [today initWithTimeIntervalSinceNow:oneDay * 180];
maxdDate = [format dateFromString:[format stringFromDate:theDay]];
}
如果我仅滑动年份,最终显示的时间超出我设置的时间
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.