Latest 0.0.5
Homepage https://github.com/coderqjd/QJDCalendar
License MIT
Platforms ios 8.0, requires ARC
Authors

一款简单的日历的视图控件,支持"周历"和"月历"切换。

示例图片

图片描述文字
图片描述文字

安装

pod ‘QJDCalendar’

如何使用

  • 导入头文件
    #import <QJDCalendar.h>
  • 创建一个可以"周历"和"月历"相互切换的日历
    QJDCalendarView *calendarView = [QJDCalendarView calendarView];
    calendarView.frame = [UIScreen mainScreen].bounds;
    calendarView.delegate = self;
    [self.view addSubview:calendarView];
  • 可以实现代理进行交互
  • (void)calendarView:(UIView )calendarView didSelectAtIndexPath:(NSIndexPath )indexPath dateString:(NSString *)dateStr {
    }

  • 如果想要单独使用月历
    QJDMonthCalendarView *monthCalendarView = [QJDMonthCalendarView monthCalendarView];
    monthCalendarView.frame = [UIScreen mainScreen].bounds;
    [self.view addSubview:monthCalendarView];
  • 如果想要单独使用周历
    QJDWeekCalendarView *weekCalendarView = [QJDWeekCalendarView weekCalendarView];
    weekCalendarView.frame = [UIScreen mainScreen].bounds;
    [self.view addSubview:weekCalendarView];

Latest podspec

{
    "name": "QJDCalendar",
    "version": "0.0.5",
    "summary": "u4e00u6b3eu7b80u5355u7684u65e5u5386u7684u89c6u56feu63a7u4ef6uff0cu652fu6301"u5468u5386"u548c"u6708u5386"u5207u6362",
    "homepage": "https://github.com/coderqjd/QJDCalendar",
    "license": "MIT",
    "authors": {
        "coderqjd": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/coderqjd/QJDCalendar.git",
        "tag": "0.0.5"
    },
    "source_files": "QJDCalendar/**/*.{h,m}",
    "resources": "QJDCalendar/QJDCalendar.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This