-
Notifications
You must be signed in to change notification settings - Fork 812
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
Visible scrolling when trying to start calendar at a certain date #263
Comments
OK. i will look into this. Thanks for finding. |
I think I have now fixed this. |
Awesome, thank you. :) |
Almost done. |
Cool, thanks! 🎉 |
Issue resolved on version 7.0 |
Awesome, thank you! 👏 |
I hope it works well for you. |
@dbmrq does version 7.0 resolve the visible scrolling issue? I'm using version 7.0 and call |
@z3bi hmm.. you are reloading data on At this point, the calendar is not even setup yet. So reloading will not really do anything. |
@patchthecode same behavior, here is what I am doing now:
|
@z3bi ok let me know how many years of date that you generate please? I will try to re-create this issue on my end |
@patchthecode I'm just doing one year prior to today until one year after today. I'll try to recreate it in a sample project for you. |
@patchthecode here is a repo with an example https://github.com/z3bi/JTAppleCalendarExample It can be hard to see it in the simulator, but it is consistently noticeable running on an iPhone 7. The flash is pretty brief, but I just wanted to see if perhaps I'm doing something incorrectly or if it's just unavoidable. |
@z3bi as the original poster shows, this seems to be an issue with |
@z3bi on 2nd thought, i think i found something. I can set the content offset inside the |
I didn't get the chance to try version 7 yet, but if the UICollectionView itself is exposed maybe we could use some of the answers to the Stack Overflow questions I posted (the hack we talked about, @patchthecode). Not the most elegant solution, but it's something. I'll look into it as soon as I can. |
@dbmrq thanks man. I'd really appreciate the help if you can |
@z3bi can you let me know if this is a fix ? |
@patchthecode yeah that worked great, can't notice any dates changing when the view loads. 👍 |
@z3bi awesome i will look at the changes again, and then get a new build for 7.0.2 up |
@dbmrq seems i found something from the links you provided |
Ah, awesome, I'm sorry I couldn't help more. I'll still take a look when I can, I've been really busy lately. |
@dbmrq its cool man. You've a;ready helped quite a bit |
@z3bi i just pushed the change to master branch. I hope i didnt break any thing :) |
@patchthecode awesome, thanks! |
My calendar has a pretty broad range, starting about 10 years ago.
I want the calendar to be on the current date when it first appears, so I do
calendarView.scrollToDate(Date())
atviewDidLoad()
.When I go to the calendar's view controller, I can se the previous months flash very quickly, and then the current month shows up (even if I use
animateScroll = false
).I didn't try it, but I think this question and some of its answers could be useful: http://stackoverflow.com/q/18087073/3539651
Maybe this too:
http://stackoverflow.com/a/26247477/3539651
The text was updated successfully, but these errors were encountered: