Hi All,
How about a custom Calendar Month view, where we can customise every thing as per app requirement. Keeping in mind about the complete customisation, the calendar has been designed for a month of the expected date. That is we can get the Calendar month view for the respective date, using this we can design the calendar for years, It supports the Locale, Using which we can create our own calendar for a year with customised animations & lot more!!!
Have a look at the few lines of code making use of 'CalendarView' .
VSCalenderView *calendarView = [[VSCalenderView alloc] initCalendarViewForMonthOfDate:[NSDate date] withFrame:CGRectMake(50, 50, 250, 200)];
calendarView.calendarLocale = [NSLocale localeWithLocaleIdentifier:@"en_US"];
[self.view addSubview:calendarView];
NSMutableArray *array = [NSMutableArray array];
for (int i = 1; i < 10; i++) {
if (i%3) {
NSDate *date2 = [NSDate dateWithTimeIntervalSinceNow:(i * 24 * 60 *60)];
[array addObject:date2];
}
}
[calendarView setMarkDates:array];
Download complete Example application for your reference with "CalendarView" : Click here to Download a copy
Your suggestions to improve this tutorial are appreciated :)
Comments
Post a Comment