Permalink
Browse files

Reverted to old array syntax so we can compile on non-beta Xcode

  • Loading branch information...
gonfunko committed Apr 28, 2012
1 parent 7c72360 commit 8d29dbe9f0151ce8cfb429f2e0eab0bfa3fa6a80
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Views/ADCalendarView.m
@@ -40,7 +40,7 @@ - (id)initWithCoder:(NSCoder *)aDecoder {
NSInteger leftOffset = 5;
NSInteger availableWidth = self.frame.size.width - 80;
NSInteger tileWidth = availableWidth / 7;
- NSArray *days = @[ @"Sun", @"Mon", @"Tue", @"Wed", @"Thu", @"Fri", @"Sat" ];
+ NSArray *days = [NSArray arrayWithObjects:@"Sun", @"Mon", @"Tue", @"Wed", @"Thu", @"Fri", @"Sat", nil];
for (NSString *day in days) {
CATextLayer *dayLayer = [CATextLayer layer];
@@ -128,7 +128,7 @@ - (void)layOutDayTiles {
NSDate *currentDate = [calendar dateFromComponents:dateComponents];
- NSArray *months = @[ @"January", @"February", @"March", @"April", @"May", @"June", @"July", @"August", @"September", @"October", @"November", @"December" ];
+ NSArray *months = [NSArray arrayWithObjects:@"January", @"February", @"March", @"April", @"May", @"June", @"July", @"August", @"September", @"October", @"November", @"December", nil];
if (title == nil) {
title = [CATextLayer layer];
}

0 comments on commit 8d29dbe

Please sign in to comment.