Latest 1.0.1
Homepage https://github.com/luwei2012/LWCalendar
License GNU
Platforms ios 7.0, requires ARC
Authors

参考ZYCalendarView 模仿了Android的material design设计

calender.gif

目前还没有开放定制化的API,想要定制UI只能修改源码

Usage

推荐使用pod

  1. 在podfile中添加pod ‘LWCalendar’

2.在需要使用的地方添加

#import "LWCalendarHeader.h" 

3.实现代理DatePickerDelegate

@interface ViewController ()<DatePickerDelegate>

@end 

-(void)onDateSet:(LWDatePickerDialog *)dialog StartDate:(NSDate *)start EndDate:(NSDate *)end{
NSLog(@"onDateSet");
}

4.创建和显示

[[LWDatePickerDialog initWithDate:[NSDate date] Delegate:self] show]; 

使用源码

1.下载源码,将LWCalendar文件夹加入自己的工程

2.在需要使用的地方添加

    #import "LWCalendarHeader.h" 

3.实现代理DatePickerDelegate

    @interface ViewController ()<DatePickerDelegate>

    @end 

    -(void)onDateSet:(LWDatePickerDialog *)dialog StartDate:(NSDate *)start EndDate:(NSDate *)end{
        NSLog(@"onDateSet");
    }

4.创建和显示

    [[LWDatePickerDialog initWithDate:[NSDate date] Delegate:self] show]; 

部分参数说明

calender.gif

几乎UI的每个部分都可以定制,具体参见LWDatePickerBuilder里面的参数说明

To do

1.寻找UI设计师帮忙设计布局,这个布局还是有点丑……

2.设计和开放多选模式的接口

3.添加时间选择器,就是Android上看着很炫的钟表

Author

luwei2012

License

CoreTextView is available under the GNU license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LWCalendar",
    "version": "1.0.1",
    "summary": "Material Design Style Calendar for IOS.",
    "description": "This is a date picker with material design style. I have searched around for such a project and I get nothing.nPeople seem to like useing the date picker offered by IOS system. So I start this project for someone else sufferring from date picker.nnHope you enjoy.nnIf you want to contribut to this project,please email "[email protected]".",
    "homepage": "https://github.com/luwei2012/LWCalendar",
    "screenshots": "https://luwei2012.github.io/images/IOS/CustomView/ZYCalender_Record.gif",
    "license": {
        "type": "GNU",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "luwei2012"
    },
    "source": {
        "git": "https://github.com/luwei2012/LWCalendar.git",
        "tag": "1.0.1"
    },
    "social_media_url": "http://luwei2012.github.io",
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "LWCalendar/**/*.{h,m}",
    "resources": "LWCalendar/LWCalendar.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This