From a1975c4ab4d338791160404f15094ed4dd086d6d Mon Sep 17 00:00:00 2001 From: Thibaut LE LEVIER Date: Wed, 4 Sep 2013 18:13:52 +0200 Subject: [PATCH] restore buttons creation in layoutSubviews for iOS 5 compatibility --- TimesSquare/TSQCalendarRowCell.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/TimesSquare/TSQCalendarRowCell.m b/TimesSquare/TSQCalendarRowCell.m index 950b989..13697cb 100644 --- a/TimesSquare/TSQCalendarRowCell.m +++ b/TimesSquare/TSQCalendarRowCell.m @@ -198,6 +198,13 @@ - (IBAction)todayButtonPressed:(id)sender; - (void)layoutSubviews; { + if (!self.dayButtons) { + [self createDayButtons]; + [self createNotThisMonthButtons]; + [self createTodayButton]; + [self createSelectedButton]; + } + if (!self.backgroundView) { [self setBottomRow:NO]; }