码迷,mamicode.com
首页 > 移动开发 > 详细

ios中VRGCalendarView日历控件

时间:2015-04-18 23:40:29      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:

http://pan.baidu.com/share/link?shareid=4166002480&uk=923776187 

官网 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 that 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 *dataArrary=@[@1,@5];
        [calendarView markDates:dataArrary];
    }
}
-(void)calendarView:(VRGCalendarView *)calendarView dateSelected:(NSDate *)date{
 
    NSLog(@"select data-->%@",date);
}

@end
技术分享

ios中VRGCalendarView日历控件

标签:

原文地址:http://www.cnblogs.com/itlover2013/p/4438210.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!