Skip to content
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

Month/Week Change #51

Closed
iOSDevGarg opened this issue Mar 23, 2019 · 11 comments
Closed

Month/Week Change #51

iOSDevGarg opened this issue Mar 23, 2019 · 11 comments

Comments

@iOSDevGarg
Copy link

How can I be notified that week/Month has been changed
I am fetching 2 month data from backend services
now I want to be notified when user had switched to third month

Using JZLongPressWeekView
Installed Pods

@zjfjack
Copy link
Owner

zjfjack commented Mar 24, 2019

There is a delegate method from JZBaseViewDelegate called initDateDidChange.

You can simply refer to the code DefaultViewController line 62.

By the way, initDate is not the first date you can see in the current calendarView, which should be the previous page first date. You can also refer the comment of property initDate.

@iOSDevGarg
Copy link
Author

I only used JZLongPressWeekView
Assigning this protocol "JZBaseViewDelegate" didn't Called the init Date method

@iOSDevGarg
Copy link
Author

Actually I need Scrolling Direction so, based on which comparing dates I can request my backend server for required slots to show

@iOSDevGarg
Copy link
Author

I read your Files there is a function which I could use is "getDatesInCurrentPage(isScrolling: false)"
But that result the dates array which was in last page shown. Not the current Dates that are shown

@iOSDevGarg
Copy link
Author

Thanks Got To Know From Your Demo Code

@iOSDevGarg iOSDevGarg reopened this Apr 11, 2019
@iOSDevGarg
Copy link
Author

As you mentioned to use initDateChange Function, I did same
but resulted in a strange issue
on Some devices like iPhone XS Max, iPhone X InitDate Change function is skipped to call

Please find attached Video - https://drive.google.com/open?id=14upTzeJ6qX8SPrRUbph0YQye2WFZBz-z

I showed toast as soon as InitDataChage function is called
As you could see sometime toast don't show up bcz that function is failed to call.

Can you please suggest Solution what I can do to get it solved?
Thanks

@iOSDevGarg
Copy link
Author

Hey @zjfjack Any Response. Please

@zjfjack
Copy link
Owner

zjfjack commented Apr 14, 2019

It seems that there are some issues with the pagination, I will look into it soon. If I cannot reproduce it, I will let you know ASAP.

@iOSDevGarg
Copy link
Author

iOSDevGarg commented Apr 14, 2019

Thanks this will really help me out. It get stuck on some devices as I mentioned like iPhone XS Max, iPhone X whereas it works perfectly on iPhone 6s. Have a look into it.

@zjfjack
Copy link
Owner

zjfjack commented Apr 14, 2019

I might find the issue which is a quite annoying issue related to some other issues #46
I will try to fix it, but you have to wait until next weekend.

@zjfjack
Copy link
Owner

zjfjack commented May 26, 2019

Hey, mate.

I finally resolve this issue with 0.7.0 version released. It is actually a quite major and difficult problem for the pagination.

You can check the release comment here.

If you have any other issue, let me know. I will close this issue.

Thanks

@zjfjack zjfjack closed this as completed May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants