-
Notifications
You must be signed in to change notification settings - Fork 72
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
Swift 4 Issue #44
Comments
I found a solution to this issue here: |
Now it’s crashes on app delegate I’m on mobile I will paste the error |
whenever i try to choose dates it crashes with the error below. No output to the console
|
I found the solution. Step 1. Add this line in EPCalendarPicker.swift, Method : public init(startYear: Int, endYear: Int, multiSelection: Bool, selectedDates: [Date]?) Lines To Add : Step 2 : Remove This Method :
Add @objc in method to look like :
Everything is working now. To Show the Calendar call below method :
|
Currently it's not working on Swift 4.0. It builds but whenever i try to choose date it crashes with the error below:
*** /Users/x/Desktop/x/x/x/EPCalendarPicker/EPCalendarPicker.swift:254:5: implicit Objective-C entrypoint -[x.EPCalendarPicker collectionView:layout:sizeForItemAtIndexPath:] is deprecated and will be removed in Swift 4; add explicit '@objc' to the declaration to emit the Objective-C entrypoint in Swift 4 and suppress this message 2017-09-14 09:26:27.702076+0300 x[1885:288332] *** /Users/x/Desktop/x/x/x/EPCalendarPicker/EPCalendarPicker.swift:254:5: implicit Objective-C entrypoint -[x.EPCalendarPicker collectionView:layout:sizeForItemAtIndexPath:] is deprecated and will be removed in Swift 4; add explicit '@objc' to the declaration to emit the Objective-C entrypoint in Swift 4 and suppress this message
The text was updated successfully, but these errors were encountered: