Developer

Month Combo View

The MAFCalendarComboView control combines a month view and a list view.

The two subviews are bound together—that is, if you tap on a day with appointments on the month view, appointments for the selected day are listed. This list is similar to the regular list view, but shows the scheduled appointments only for the selected day, so day headings are not shown. Appointments are indicated in the same way as in the respective individual controls. This figure shows the default look of the control:

Month Combo View

Presenting the Combo View

To present the combo view, initialize a <MAFMonthComboCalendarView> object and add it as a subview to any presenting ViewController. For example:
-(void)setupMonthComboView:(UIViewController*)vc
{
MAFMontComboCalendarView* view = [[MAFMonthComboCalendarView alloc] initWithFrame:CGRectMake(0, 44, 320, 367)];
        
view.datasource = self;
view.delegate   = self;
view.startDate = [NSDate date];
view.tag = 42;
        
[vc.view addSubview:view];
[view release];
}