We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is my code:
fun minimumDateForCalendar(calendar: FSCalendar) -> NSDate { if self.startTime == nil || self.startTime == "" { let minDate = calendar.dateByAddingMonths(0, toDate: NSDate()) return calendar.dateWithYear(calendar.yearOfDate(minDate), month: calendar.monthOfDate(minDate), day: 1) } else { let date = calendar.dateFromString(startTime!, format: "yyyy-MM-dd") return calendar.dateWithYear(calendar.yearOfDate(date), month: calendar.monthOfDate(date), day: calendar.dayOfDate(date)) } } func maximumDateForCalendar(calendar: FSCalendar) -> NSDate { if self.endTime == nil || self.endTime == "" { let minDate = calendar.dateByAddingMonths(0, toDate: NSDate()) return calendar.dateWithYear(calendar.yearOfDate(minDate), month: calendar.monthOfDate(minDate), day: 30) } else { let date = calendar.dateFromString(endTime!, format: "yyyy-MM-dd") return calendar.dateWithYear(calendar.yearOfDate(date), month: calendar.monthOfDate(date), day: calendar.dayOfDate(date)) } }
After net request I reload calendar view, minimumDate and maximumDate is wrong with the interface shows.
The text was updated successfully, but these errors were encountered:
Closing this as it's fixed.
Sorry, something went wrong.
No branches or pull requests
This is my code:
After net request I reload calendar view, minimumDate and maximumDate is wrong with the interface shows.
The text was updated successfully, but these errors were encountered: