Hi i get this error : this class is not key value coding-compliant for the key ibCalendarDataSource.'
i follow your set up video step by step
and here is my code :
`
import UIKit
import JTAppleCalendar
class ViewController : UIViewController {
let formatter = DateFormatter()
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
extension ViewController : JTAppleCalendarViewDelegate,JTAppleCalendarViewDataSource
{
func calendar(_ calendar: JTAppleCalendarView, willDisplay cell: JTAppleCell, forItemAt date: Date, cellState: CellState, indexPath: IndexPath) {
}
func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
formatter.dateFormat="yyyy MM dd"
formatter.timeZone=Calendar.current.timeZone
formatter.locale=Calendar.current.locale
let startDate=formatter.date(from: "2017 01 02")
let endDate=formatter.date(from: "2017 10 02")
let parameters=ConfigurationParameters(startDate: startDate!, endDate: endDate!)
return parameters
}
func calendar(_ calendar: JTAppleCalendarView, cellForItemAt date: Date, cellState: CellState, indexPath: IndexPath) -> JTAppleCell {
let myCustomCell = calendar.dequeueReusableCell(withReuseIdentifier: "CustomCell", for: indexPath) as! CustomCell
self.calendar(calendar, willDisplay: myCustomCell, forItemAt: date, cellState: cellState, indexPath: indexPath)
return myCustomCell
}
}
`
here screen from story board :
https://ufile.io/n8hmu
would you please help me solve this problem?
your library is great so wanna use just JT...
tnx a lot
forgot : use last version 7.1.5
exact error stack
2018-07-30 11:14:05.486031+0430 Moghim24[15721:303288] Unknown class _TtC8Moghim2419JTAppleCalendarView in Interface Builder file.
2018-07-30 11:14:05.495353+0430 Moghim24[15721:303288] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[
this is an XCode generated error alerting you that you have an error on your storyboard/nib.
basically you have some place on your xib where you have the value ibCalendarDataSource. For an object that does not require it. This means there is one point in the video you made a mistake.
@blueco1 @patchthecode Setting the module to JTAppleCalendar while setting the class for collectionView fixed it.
awesome. closing this issue then.

Most helpful comment
@blueco1 @patchthecode Setting the module to JTAppleCalendar while setting the class for collectionView fixed it.