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

JTCalendar not working in Swift 4.2 #378

Open
arun9447 opened this issue Dec 20, 2018 · 2 comments
Open

JTCalendar not working in Swift 4.2 #378

arun9447 opened this issue Dec 20, 2018 · 2 comments

Comments

@arun9447
Copy link

Hi Jonathan,

I installed JTCalendar into my project through Cocoapods and it was working till swift 4.0. After swift 4.2 migration it was not working. Delegates or datasources are not firing.

I updated JTCalendar to version 2.2. but still it was not working. Could you please suggest a workaround.

@jonathantribouharet
Copy link
Owner

jonathantribouharet commented Dec 21, 2018

Hi,
first check the delegate and datasource are not nil, I didn't update the lib for a while.
You may have to add @objc annotations, it's strange but you can try something like this:

@objc(calendar:didTouchDayView) // not sure about this but something like this
- (void)calendar:(JTCalendarManager *)calendar didTouchDayView:(JTCalendarDayView *)dayView

I put this on didTouchDayView method but you have to try to put it on every methods.

@Cinderflame-Linear
Copy link

Had the same problem. Adding @objc to my protocol methods fixed things.

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

3 participants