Jtapplecalendar: Crash when creating cell extending JTACMonthCell programatically

Created on 18 Oct 2019  路  3Comments  路  Source: patchthecode/JTAppleCalendar

**(Required) Version Number: 8.0.2

Description

Showing year view crash with assert error:
guard let monthView = monthView else { assert(false); return }

Steps To Reproduce

Creating month cell by extending JTACMonthCell programatically.

Expected Behavior

Code should pass assert false

Additional Context

By programatically creating month cell, there's no way to access var monthView: JTACCellMonthView? in parent class.
Making it public and assigning from child will fix the error.

Most helpful comment

Thanks.
Year view still has some edgecases to work out.
Thanks for letting me know this.
Will take a look over the weekend once free. I have some other issues on the issue list looking at, but if this fix is as easy as it sounds, i'll have a look.

All 3 comments

Thanks.
Year view still has some edgecases to work out.
Thanks for letting me know this.
Will take a look over the weekend once free. I have some other issues on the issue list looking at, but if this fix is as easy as it sounds, i'll have a look.

@patchthecode any update regarding this issue?

@joshuaLareta fixed by connecting the monthView outlet from JTACMonthCell to the JTACCellMonthView view in my xib.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oddpandadesign picture oddpandadesign  路  5Comments

Kevinw14 picture Kevinw14  路  3Comments

leo150 picture leo150  路  3Comments

programus picture programus  路  3Comments

MoridinBG picture MoridinBG  路  5Comments