Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

About the datePicker.datePickerMode #27

Open
liuyan3176 opened this issue Dec 3, 2015 · 4 comments
Open

About the datePicker.datePickerMode #27

liuyan3176 opened this issue Dec 3, 2015 · 4 comments
Labels
Milestone

Comments

@liuyan3176
Copy link

Hi David,
Thanks for your Bohr,it help me a lot in my project.
But now I have to change the datePicker.datePickerMode=UIDatePickerModeDateAndTime,
When I scroll the datePicker at today,the project will crash and the log is in the following:
*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]' ***
Can you help me and tell me how to solve this problem?
Thanks a lot.

@davdroman
Copy link
Owner

Hi there!

Thanks for reporting that! It's a known issue and I'll try to address it in the future 4.0 release. I'm pretty sure it has to do with the way cells calculate their height based on their elements (UIPickerView is a super heavy element layout-wise, especially in DateAndTime mode).

@liuyan3176
Copy link
Author

@davdroman Thanks a lot !

@davdroman davdroman added this to the 4.0.0 milestone Jan 6, 2016
@davdroman davdroman added the bug label Jan 6, 2016
@Steven4294
Copy link

any luck fixing this?

@davdroman
Copy link
Owner

@Steven4294 not really, I haven't been able to work on Bohr anymore since I'm quite busy. However I encourage you to look into it and PR a fix for this if you'd like 😄

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

No branches or pull requests

3 participants