Latest 0.0.1
Homepage https://github.com/xiachengaa/EJCalendar
License MIT
Platforms ios , requires ARC
Authors

效果图

Calendar 是一个用来选择一个日期区间的UIViewController的子类。

使用方法

CalendarViewController *vc = [CalendarViewController new];
//选择的开始时间和结束时间的时间戳,以秒为单位
vc.choosedBlock = ^(NSTimeInterval startDate, NSTimeInterval finishDate){
        NSString *startDateStr = [EJTimeParseTool changeTimeStampToStringWithFormat:@"yyyy-M-d" timeStamp:startDate * 1000];
        NSString *endDateStr = [EJTimeParseTool changeTimeStampToStringWithFormat:@"yyyy-M-d" timeStamp:finishDate * 1000];
        self.dataLabel.text = [NSString stringWithFormat:@"%@n%@",startDateStr,endDateStr];
};
[self.navigationController pushViewController:vc animated:YES];

Latest podspec

{
    "name": "EJCalendar",
    "version": "0.0.1",
    "summary": "a calendar for choosing time interval",
    "description": "A calendar which you can use to choose a time intervalu3002",
    "homepage": "https://github.com/xiachengaa/EJCalendar",
    "license": "MIT",
    "authors": {
        "xiacheng": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/xiachengaa/EJCalendar.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "CalendarViewController",
        "CalendarViewController/*.{huff0cm}"
    ],
    "public_header_files": [
        "CalendarViewController/CalendarViewController.h",
        "CalendarViewController/CalendarView.h",
        "CalendarViewController/CalendarDelegate.h"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This