-
Notifications
You must be signed in to change notification settings - Fork 810
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
Repeated week between two months with one row calendar #143
Comments
Its not a bug. What you are seeing is what every one else is asking for in singlerow mode --> The ability to remove in-dates and out-dates. If you notice, in 6-row mode, you will see grayed out dates represesting in-dates/out-dates of the previous month and following month. This works well for 6-row mode, but sucks for single row mode. I am working on an upgrade so that you can enable/disable this. I have the explanation here -> #129 currently the code is 90% complete. Unfortunately, I am making the upgrade for this in swift3 first. Afterwards I will support swift2. |
Ok, I got the point. Thanks so much. |
In Dynamic generation, thats where i am working on the code. You can test it out there. |
Keep in mind, the code will be in swift3 |
Ok thanks. |
hmm. That is a good idea. I will include it a an enhancement |
@allemattio by the way, could you let me know the reason for this upgrade? |
Also, this is now fixed on master branch. Testing is still in progress. |
@patchthecode I need that because I have to put under the week calendar a grid with the events for the week, just like the iphone landscape calendar. Thank you so much, what is fixed? the duplicated week or the part about the segment limits? |
What was fixed was the original issue. The in-dates/out-dates feature. Ok one thing, concerning, the new enhance you want, will it still be necessary since you might be removing the in-dates/out-dates for the single row calendar? |
@patchthecode I think that now that won't be necessary. |
@patchthecode just a question. This is fixed for Swift 2.2 and will be pushed to master, right? |
Hmm... Its hard for me to both maintain swift3 and swift 2.2.. ..... The people here have already requested a swift 2.3 branch, but my work place have already migrated to swift3. As I have mentioned to them in this issue -> #144 , someone will have to create a branch called Will your project be in swfit 2.3/2.2? |
My project is in swift 2.2, sadly I don't think I'll have time to migrate it. I will try only if I can't workaround this issue |
Hmm. Well just so you know. Migrating is easy with XCode 8. It pretty much almost does every thing for you. But yea, some people will have to create a separate branch as it is a bit much for my plate. |
On which branch and for which version have you fixed this Issue? 3 or 2.3?it's Also easy to migrate from 2.2 to 3 or only from 2.2 to 2.3? |
the branch i am making all the changes on is called |
I'm trying to bring the changes for the indate/outdate to the 2.2 branch, is it difficult? |
@patchthecode I migrated my code to swift 3 to try the DynamicGeneration branch, I managed to remove indates by setting false in the delegate, and removed the outdates by setting .off when configuring the week calendar Now, In the week view, where I have another calendar configured with 1 row I have this problem, it's like that a day "disappears" now and then, look at these screenshots: Now if I scroll to the right I see: Another example, starting from: and scrolling to the left I see: Now and then a day disappears, and the weeks get misaligned. |
Its a work in progress. Thanks for pointing this error out. Will look at it. It's thanks to testers like you I get to see where bugs are and fix them before an official release |
1st Day of week is not respected yet, because I have not completed the code there. It originally operated from the fact there is a defined 6x7 grid. But now, setting in-dates/out-dates on/off breaks this rule. So I have to code for that. In regards to the section being incorrect. It is the same thing. Have to do recalculations there. The day that is disappearing however, I'll have to fix the other 2 bugs to see if that problem is resolved. Hey if you find new issues, can you create a new Issue so we can track it there? Since this issue here is for the date-in/out feature. I will flag new issues you create under the |
@patchthecode thanks, I won't bother you, I'll just peacefully wait for the fixes! :-) |
No worries. In fact, i actually need you guys to tell me where the bugs are. |
@patchthecode I will try it today and I will let you know. Just for knowledge, the branch |
@patchthecode I got this error: Also, I noticed that now I have to put the code for the generation of the calendar in the ViewDidAppear method, also I had to fix the frame height of the Cells for the calendar with 1 row |
ok.
The frame height problem is known. |
Also, let me see your viewDidLoad setup code for the calendar please |
@patchthecode If I leave it in the viewDidLoad, it is not rendered correctly, it's not visible. here is the function: `
` |
Ok. Do you have headers registered? |
chat here is slow.. Mind joining me here? -> https://gitter.im/patchthecode/JTAppleCalendar |
no, no headers. here is the code called in the viewDidLoad
|
sure, joining the chat |
@patchthecode find this problem on the DynamicGeneration branch, with a calendar with 6 rows and this config:
|
Ok one thing, when posting your code here, could you remove lines like these?
Replace it with the actual date string becaue I do not know what is the start date and endDates with those lines. |
Ok. Made some changes. |
I tried to use the DynamicGeneration branch in my app but freezes on launch. |
The example scroll is set in the
delete that line of code to have you scroll paginated. You say it freezes your app. |
Btw, if chat is too slow, you can join me here -> https://gitter.im/patchthecode/JTAppleCalendar |
Also, the names of some functions were changed to make it more standard. I think your app is freezing because since the function names have changed, the library is trying to call functions that does not exist in your app because the delegate function names are now different? |
Hi @patchthecode
I'm using your calendar in one row mode to have a week view.
I have a strange behaviour and I don't know if it's a bug or a misconfiguration problem.
Here's the thing, suppose that I'm in this situation, with a week between two months:
If I scroll left, I would like to see the week from august 22nd to august 28th, but Instead I find another time this:
And then, if I scroll again left I find this
And scrolling again to the left I finally find the week from august 22nd to august 28th
I use dark gray in the day names for current month names and light gray for other months' day.
It's like there is an extra and useless week between two months.
This happens every time when I'm scrolling from a month to another.
Here is the initialization code:
and here is the configureCalendar Method from the delegate
Am I doing something wrong or is a bug?
Thanks in advance, and CONGRATULATIONS, this is by far the best calendar plugin, thank you so much for having developed it!!!!
The text was updated successfully, but these errors were encountered: