zoukankan      html  css  js  c++  java
  • ios中VRGCalendarView日历控件

    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
  • 相关阅读:
    韦到头打印链表
    字符串替换
    二维数组中的查找
    字符串加解密
    简单密码破解
    vue中store模块化
    使用requests抓取网页内容
    PyQt中的一些小问题
    微信公众号之Token验证
    编译BOOST中的PYTHON模块
  • 原文地址:https://www.cnblogs.com/gcb999/p/3232335.html
Copyright © 2011-2022 走看看