patchthecode / JTAppleCalendar

The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable
https://patchthecode.com
MIT License
7.55k stars 806 forks source link

can't connect calendarView to dataSource in storyboard #1082

Closed Polkendotts closed 5 years ago

Polkendotts commented 5 years ago

(Required) Version Number: JTAppleCalendar (8.0.0)

Description

Steps To Reproduce

Expected Behavior

Additional Context

I am following the wiki tutorial but I am unable to get past the first step of setting the calendar’s ibCalendarDataSource and ibCalendarDelegate to be the ViewController subclass in the storyboard as shown here:

Screen Shot 2019-07-04 at 8 55 02 PM

On my screen it looks like this, and there is no ibCalendarDataSource or ibCalendarDelegate delegate to be connected:

Screen Shot 2019-07-04 at 9 00 15 PM

I've properly classed the uicollection view to JTAppleCalendarView

Screen Shot 2019-07-04 at 9 34 47 PM

I've tried to work around this by setting the dataSource and delegate manually in my viewcontroller, but I put a print command in the dataSource and delegate extensions, I can see they are not being called.

Screen Shot 2019-07-04 at 9 04 23 PM Screen Shot 2019-07-04 at 9 17 25 PM

And the simulation looks like this:

Screen Shot 2019-07-04 at 9 02 17 PM

I've tried looking through more recent examples such as, this from 7months ago https://github.com/lamkjbo/JTCalendarCustom

However every example has the same ibCalendarDataSource or ibCalendarDelegate outlets in their storyboard, I can't figure out where they come from- i've searched through the pod files to see if they are declared somewhere as well, but to no avail. I think my skill level and knowledge is not deep enough to figure it out.

Im frustrated because it seems so simple but I can't get past the first step. I've already devoted 2 days developing a beautiful calendar by building off of one of the basic sample projects downloadable on the wiki tutorial page, but I am unable to recreate it in my own project because of this issue.

patchthecode commented 5 years ago

checking. give me a sec.

patchthecode commented 5 years ago

what package manager are u using? cocoapods? carthage? swiftpackagemanager ?

Polkendotts commented 5 years ago

what package manager are u using? cocoapods? carthage? swiftpackagemanager ?

Thanks! I use cocoapods

patchthecode commented 5 years ago

I just created a new project and every thing works well.

are you following this tutorial? -> https://patchthecode.com/jtapplecalendar-home/calendar-from-scratch/

patchthecode commented 5 years ago

If you are, then just know that you are following the tutorial for version 7.1.7 ok. But you just told me that you have version 8.0.0 installed :/

Could that be the source of confusion?

Polkendotts commented 5 years ago

Ah of course, that's most likely the issue. I had an issue downloading the specific version pod 'JTAppleCalendar', '~>; 7.1' as displayed in the tutorial. I realize now it was because the ";" needed to be removed. Ok, I will try again now with the correct version and hopefully the issue will be resolved. Thank you so much.

patchthecode commented 5 years ago

cool. let me know how it goes. If all is well, you can close this issue.

Polkendotts commented 5 years ago

cool. let me know how it goes. If all is well, you can close this issue.

yep works great now :)

patchthecode commented 5 years ago

awesome

orcunorcun commented 5 years ago

@patchthecode Can you share your codes and pod file. I tried it, but it responses error after build :/