Skip to content

luwei2012/LWCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LWCalendar

参考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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published