Archive for January 14th, 2009

14
Jan

Class: UICCalendarPicker

So you don’t like the looks of UIDatePicker and would prefer a conventional looking calendar view instead? Well, look what we have for you here:

uiccalendarpicker

Very nice, yes? Source available here for use freely (New BSD) courtesy of one Kishikawa Katsumi. Not being fluent in written Japanese (although ordering sushi and sake, that we do practice a lot) most of that is fairly mysterious to us, but if you’re better at that, try here or here for more details. The essence of it appears fairly clear, though:

UICCalendarPicker *calendarPicker = [[UICCalendarPicker alloc] initWithSize:UICCalendarPickerSizeMedium];
[calendarPicker setDelegate:self];
[calendarPicker setSelectionMode:UICCalendarPickerSelectionModeMultiSelection];
[calendarPicker showInView:self.view animated:YES];
[calendarPicker release];

h/t: iphonesdk!