Jtapplecalendar: Range selection is happening different cells

Created on 29 Apr 2018  路  6Comments  路  Source: patchthecode/JTAppleCalendar

IMPORTANT - BEFORE CREATING YOUR ISSUE PLEASE READ THE FOLLOWING:

*. Using the latest version.

First of all Thanks for creating an amazing library.
I want to create a calendar like the below screenshot
screen shot 2018-04-29 at 12 09 14 pm

You can find my source code is here: https://github.com/yasheedv/JTAppleCalendarDemo
I created a range selection. But Im getting the following issues. Please help me to find a solution for this.

  1. I selected April 30 to May 2 and getting the following

screen shot 2018-04-29 at 12 09 14 pm

  1. Selected May-5 to May 31

screen shot 2018-04-29 at 12 09 14 pm

  1. June 14 to July 1
    screen shot 2018-04-29 at 12 09 14 pm

Most helpful comment

Just to follow up on this in case anyone else is experiencing this issue. In example 1 and 2, it seems like the OP was trying to not show the range indication on dates outside of the valid calendar days in a month. To achieve this you can simply check cellState.dateBelongsTo == .thisMonth when configuring your cells.

All 6 comments

will take a look

Hii.. Any updates ?

ok. i only now had a chance to look at this. Sorry for the late response.

  1. I selected April 30 to May 2 and getting the following
    You have shown me the image of what you have. But can you show me what you want it to look like?

screen shot 2018-04-29 at 12 09 14 pm

Keep in mind, that showing me the wrong image, does not make me understand what should be the right image. Many developers have different designs in mind.

  1. Selected May-5 to May 31
    Same thing here. What should it look like? I see in the image that your indates for the month of June is selected. Should it be invisible? visible?

screen shot 2018-04-29 at 12 09 14 pm

  1. June 14 to July 1
    This is the only image that seems obvious to me that there is an error. Because i assume you do not want two end selections. But can you help me understand for # 1 and # 2?

screen shot 2018-04-29 at 12 09 14 pm

Ive finally got around to this.
Your code was too complex for me to go through, so i created a range selection example for you.
Download the github project and run the attached sample project.
On the fourth option, you will see rangeSelection example.

will close this issue.
Let me know if youre still experiencing problems.

Just to follow up on this in case anyone else is experiencing this issue. In example 1 and 2, it seems like the OP was trying to not show the range indication on dates outside of the valid calendar days in a month. To achieve this you can simply check cellState.dateBelongsTo == .thisMonth when configuring your cells.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fatalution picture Fatalution  路  3Comments

nikolalukovic picture nikolalukovic  路  4Comments

MoridinBG picture MoridinBG  路  5Comments

Geekbell picture Geekbell  路  4Comments

programus picture programus  路  3Comments