diff --git a/PDTSimpleCalendar/PDTSimpleCalendarViewController.m b/PDTSimpleCalendar/PDTSimpleCalendarViewController.m index 658e711..386a86e 100644 --- a/PDTSimpleCalendar/PDTSimpleCalendarViewController.m +++ b/PDTSimpleCalendar/PDTSimpleCalendarViewController.m @@ -61,6 +61,7 @@ - (instancetype)initWithCoder:(NSCoder *)coder { //Force the creation of the view with the pre-defined Flow Layout. //Still possible to define a custom Flow Layout, if needed by using initWithCollectionViewLayout: + self = [super initWithCoder:coder]; self = [super initWithCollectionViewLayout:[[PDTSimpleCalendarViewFlowLayout alloc] init]]; if (self) { // Custom initialization