Giter Club home page Giter Club logo

jzdatepicker's People

Contributors

haojianzong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jzdatepicker's Issues

When numberOfDays = 0 , I got Error

Hi,

I want to let you know that when I set numberOfDays = 0 (in some screens I need to show only 1 date), I got crash. The crash info is :
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'toDate must be after fromDate'

This line in JZDatepicker.m causes the crash:
NSAssert([fromDate compare:toDate] == NSOrderedAscending, @"toDate must be after fromDate");

When I delete it, there's no problem.

selectDate at index throws error

I want to load the calendar with 14 days(one week to the past and one week to the future) and I'm using the below code to do it.
This works fine, but when the current date is the month beginning I'm getting crash with the below error.

Attempted to scroll the collection view to an out-of-bounds item (7) when there are only 7 items in section 0

var prevDate = Date()
prevDate.changeDays(by: -7)
datePicker.fillDates(from: prevDate, numberOfDays: 14)
datePicker.selectDate(at: 7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.