Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最终显示的数值有误 #2

Open
ZNLHH opened this issue Aug 30, 2017 · 4 comments
Open

最终显示的数值有误 #2

ZNLHH opened this issue Aug 30, 2017 · 4 comments

Comments

@ZNLHH
Copy link

ZNLHH commented Aug 30, 2017

在自定义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]];
        
    }

如果我仅滑动年份,最终显示的时间超出我设置的时间

@GrapeFruitJun
Copy link

GrapeFruitJun commented Oct 10, 2017

在不,能不能写个demo 给我们,把问题展示下,我们好对症下药!多谢!@ZNLHH 的确是,因为没有连级滚动更新,期待更新一下

@boai
Copy link
Member

boai commented Oct 17, 2017

你们更新下最新的 pod 版本,1.1.2 看看还有没有这个问题!

@boai
Copy link
Member

boai commented Oct 17, 2017

@ZNLHH @GrapeFruitJun 看看最新 版本 1.1.2 版本还有没有这个问题,如果有问题,请及时联系下我们:QQ 137361770,我们会及时解决!

@boai
Copy link
Member

boai commented Apr 12, 2021

新版本 V 1.2.1 已解决!请及时更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants