Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/KalMonthView.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
#import "KalDate.h"
#import "KalPrivate.h"

extern const CGSize kTileSize;
//extern const CGSize kTileSize;
static CGSize kTileSize;
extern const CGSize kTileIPHONE;
extern const CGSize kTileIPAD;

@implementation KalMonthView

Expand All @@ -19,6 +22,12 @@ @implementation KalMonthView
- (id)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {

if ([[UIDevice currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPhone)
kTileSize = kTileIPHONE;
else if ([[UIDevice currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPad)
kTileSize = kTileIPAD;

tileAccessibilityFormatter = [[NSDateFormatter alloc] init];
[tileAccessibilityFormatter setDateFormat:@"EEEE, MMMM d"];
self.opaque = NO;
Expand Down