IMPORTANT - BEFORE CREATING YOUR ISSUE PLEASE READ THE FOLLOWING:
Like this project? Consider supporting by leaving a star rating. :)
Thanks,
Jay
Hiya, I've just updated my pods and downloaded 7.0.1.
This has caused an array of errors such as "use of unresolved type JTAppleDayCellView" , there is no member for registerCellViewXib or cell inset.
calendarView.dataSource = self and calendarView.delegate = self are also producing errors.
To be clear, these errors were not appearing before the update and I cannot see any posts which indicate these values should be changed post update. Thanks for your help
Hi.
Many things are different now in the new version, one thing that helped me a lot was this video since there is no new documentation yet, I think.
Okay thanks a bunch, I literally just found this page which was helpful for converting to the update.
However now when I run the calendar view I am getting an error on the line
setupNewLayout(from: collectionViewLayout as! JTAppleCalendarLayoutProtocol)
I'm not receiving an error message in the terminal but the line is saying EXC_BAD_ACCESS. Any ideas?
@lee493
Can you tell me what you have in you Podfile ?
You can always join the chat here -> https://gitter.im/patchthecode/JTAppleCalendar
I'll be online for some hours
I had that error as well.
The reason is because the calendar changed quite a bit, and now the collection view is exposed to us.
If you follow the youtube video instructions that error will go away.
I followed the instructions previous issue. Updated the podfile to pod 'JTAppleCalendar', '~> 7.0'.
Also followed the tutorial but still getting errors elsewhere. The initial issue is however fixed
I have not yet finished the transition guide.
But if you let me know where the errors are then I can help
Hey getting the same error at setupNewLayout(from: collectionViewLayout as! JTAppleCalendarLayoutProtocol). I've attached the subclass of the implementation below :)
@kermankohli i am not understanding the code a bit.
Why are you creating a subclass of JTAppleCalendarView?
and where is this function called
func setupDateSelector(forRows: Int, scrollingMode: ScrollingMode)
@patchthecode I'm creating a subclass of it since there's a bit of customisation that I'm doing and showing this customised calendar in two places. Here's an example of how I'm using it in another controller:
override func viewDidLoad() {
super.viewDidLoad()
calendarView.setupDateSelector(forRows: 4, scrollingMode: .stopAtEachSection)
calendarView.extendedDelegate = self
calendarView.startAtFirstOfMonth = false
calendarView.updateMonthText = { [weak self] text in
self?.monthLabel.text = text
}
calendarView.dateSelected = { [weak self] in
self?.tableView.reloadData()
}
}
@kermankohli ok, i will have another look after work today
I have the same issue.
I followed the youtube video instructions step by step but the error doesn't go away.
@zjdavid Join me here -> https://gitter.im/patchthecode/JTAppleCalendar
The issue the others are mentioning is different. @kermankohli has done some code that is totally different from the video.
Can you provide a zipped copy of the project for me in here? just drag the file inside the chat box.
#[Update]
had a discussion with @zjdavid. Issue resolved. The little mistakes that bite you 😉
@kermankohli it would be nice if you gave a sample project instead of the file.
I cannot guess how you are using it. It would be best if you created an empty sample project which shows how you are getting that error.
closing this issue as all seem to have been resolved.
If there are still issues here, then reopen, and I will help.
I'm getting the same error. Any ideas?
@oskarko what errors?
"However now when I run the calendar view I am getting an error on the line
setupNewLayout(from: collectionViewLayout as! JTAppleCalendarLayoutProtocol)
I'm not receiving an error message in the terminal but the line is saying EXC_BAD_ACCESS. Any ideas?
"
ok. first, you'll have to tell me what version of the calendar you are using.
What do you have in your Podfile?
Also, how are you creating your calendar, with code? or with Interface Builder?
Also, taking here is faster (if im awake) https://gitter.im/patchthecode/JTAppleCalendar
I have RealmSwift and SwiftDate in my podFile. I'm creating my calendar with IB and I'm using the last version of JTAppleCalendar to update my project from Swift 2.2 to Swift 3.
@oskarko in that case the errors are expected.
Many things have changed in version 7.
I have now made the library a direct UICollectionView subclass.
Therefore all the variable and function names have been renamed to match a UICollectionView.
This was done so that every one will find the lib easier to use. If you can use a UICollectionView, then the calendar will come as 2nd nature to you.
The changes are many but are all shown in this video list.
Using that Video list, you will be able to the changes that were done, and how to fix the erros you currently -- > Here