diff --git a/src/TapkuLibrary/TKCalendarDayEventView.m b/src/TapkuLibrary/TKCalendarDayEventView.m index 265b9c8d..f61c50f7 100644 --- a/src/TapkuLibrary/TKCalendarDayEventView.m +++ b/src/TapkuLibrary/TKCalendarDayEventView.m @@ -126,7 +126,7 @@ - (void) layoutSubviews{ self.titleLabel.frame = r; - [self.titleLabel sizeToFit]; + if([[[UIDevice currentDevice] systemVersion] floatValue] >= 6) [self.titleLabel sizeToFit]; hh = h > 200 ? (FONT_SIZE+2.0) * 2 : FONT_SIZE+2; r = CGRectInset(self.bounds, 5, 5); @@ -136,7 +136,7 @@ - (void) layoutSubviews{ self.locationLabel.frame = r; self.locationLabel.hidden = self.locationLabel.text.length > 0 ? NO : YES; - [self.locationLabel sizeToFit]; + if([[[UIDevice currentDevice] systemVersion] floatValue] >= 6) [self.locationLabel sizeToFit]; }