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
    复制代码
  • 相关阅读:
    Java 泛型
    Github
    软件工程----前端
    前端全局缓存的三种方式
    关于IDE的选择
    模拟placeholder
    小程序request封装
    小程序实现大转盘抽奖----踩坑之路
    关于this的理解
    小程序背景图片bug
  • 原文地址:https://www.cnblogs.com/itlover2013/p/4438210.html
Copyright © 2011-2022 走看看