http://pan.baidu.com/share/link?shareid=4166002480&uk=923776187
Official website Https://github.com/TjeerdVurig/Vurig-Calendar
#import <UIKit/UIKit.h> #import "VRGCalendarView.h" @interface viewcontroller:uiviewcontroller< vrgcalendarviewdelegate> @end #import "ViewController.h" @interface Viewcontroller () @end @implementation viewcontroller-(void) viewdidload{[Super Viewdidload]; Vrgcalendarview *calendarview=[[vrgcalendarview alloc] init]; calendarview.delegate=self; [Self.view Addsubview:calendarview]; [CalendarView release];} -(void) didreceivememorywarning{[Super didreceivememorywarning]; Dispose of any resources the can be recreated.} #pragma mark-vrg delegate-(void) CalendarView: (Vrgcalendarview *) CalendarView switchedtomonth: (int) Month Targetheight: (float) targetheight animated: (BOOL) animated{NSLog (@ "Switch--->%zi", month); if (month==[[nsdate Date] month) {Nsarray *[email protected][@1,@5]; [CalendarView markdates:dataarrary]; }}-(void) CalendarView: (Vrgcalendarview *) CalendarView dateselected: (nsdate *) date{NSLog (@ "Select data-->%@ ", date);} @end
Vrgcalendarview Calendar Control in iOS