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

Minimum Date not being applied to DateTimeInlineRow #111

Closed
Gman9855 opened this issue Nov 28, 2015 · 7 comments
Closed

Minimum Date not being applied to DateTimeInlineRow #111

Gman9855 opened this issue Nov 28, 2015 · 7 comments

Comments

@Gman9855
Copy link

I want my minimum date on the date picker to be the current date. So i simply set it like so... $0.minimumDate = NSDate() but it doesn't seem to change anything. Am i missing something?

@mtnbarreto
Copy link
Member

@Gman9855 Could you post the code that define the date row?

@mtnbarreto
Copy link
Member

<<< DatePickerRow() { $0.minimumDate = NSDate() } 

using the code above the UIPickerView doesn't allows me to select a earlier date than NSDate.

Could you confirm you are setting $0.minimumDate from the row constructor block?

@Gman9855
Copy link
Author

Gman9855 commented Dec 3, 2015

I'm not using a DatePickerRow, i'm using a DateTimeInlineRow

@Gman9855
Copy link
Author

Gman9855 commented Dec 3, 2015

Figured it out- need to call onExpandInlineRow and then set the minimumDate property on the DateTimePickerRow from the callback

@Gman9855 Gman9855 closed this as completed Dec 3, 2015
@mtnbarreto
Copy link
Member

Did you mean onPresentInlineRow?

@Gman9855
Copy link
Author

Gman9855 commented Dec 3, 2015

Well maybe it works there too- but i'm doing it in onExpandInlineRow, where i can grab a reference to the DateTimePickerRow

@mtnbarreto
Copy link
Member

This is actually a bug :(. Shouldn't be necessary to set up again the property from onExpandInlineRow.

mtnbarreto added a commit that referenced this issue Dec 3, 2015
mtnbarreto added a commit that referenced this issue Dec 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants