Jtapplecalendar: No cells displayed

Created on 21 Nov 2018  路  3Comments  路  Source: patchthecode/JTAppleCalendar

I'm running 7.1.6.

I followed through the tutorial video thoroughly. I've set all the constraints as it was shown in the first video. I've set the outlets (however there are 7 outlets instead of 2 in the video?! nevertheless I've set dataSource, delegate, ibCalendarDataSource and ibCalendarDelegate to Apple Calendar View)

WillDisplay function created (copypasted the code from cellForItemAt, I have no idea what else should I've done)

I get nothing still. Just grey box.

Any help?

2018-11-21 6 16 47
2018-11-21 6 16 36
2018-11-21 6 16 21

Most helpful comment

It seems that connecting the delegate and datasource in Storyboard does not currently work for this version of Xcode, so you need to do it programtically. Go into your viewDidLoad() and try using something like this:

calendarView.calendarDataSource = self
calendarView.calendarDelegate = self

Note that you need an outlet for your calendar. I recommend that the owner put this fix in his big warning page, as anyone that finds this calendar extension and follows his video tutorial would run into this problem.

All 3 comments

  1. Have you set your calendar delegates?
  2. And if yes, then does your delegate functions cellForItem() get called?

It seems that connecting the delegate and datasource in Storyboard does not currently work for this version of Xcode, so you need to do it programtically. Go into your viewDidLoad() and try using something like this:

calendarView.calendarDataSource = self
calendarView.calendarDelegate = self

Note that you need an outlet for your calendar. I recommend that the owner put this fix in his big warning page, as anyone that finds this calendar extension and follows his video tutorial would run into this problem.

closing this as it seems resolved.

Was this page helpful?
0 / 5 - 0 ratings