ios - JTCalendar delegate parameter type mismatch with swift -


i'm trying implement in application amazing calendar view jtcalendarview.

i used cocoapod configure framework, i'm following guide provided author in github link

my problems come when try implement delegates. example in page author uses method:

- (void)calendar:(jtcalendarmanager *)calendar preparedayview:(jtcalendardayview *)dayview 

but when try implement same method in swift project have different type variables. have following method:

func calendar(calendar: jtcalendarmanager!, preparedayview dayview: uiview!)  

that, respect obj-c 1 doesn't have type jtcalendardayview dayview. of course can no more set properties object.

by searching on definition of delegate protocol saw methods "lost" (has uiview) type of last parameter.

does know problem comes from?

you right. annoying.

if let myveryowndayview = mydayview as? jtcalendardayview {   // on, work myveryowndayview } 

Comments