Light413 / CalendarView

A simple use case for iOS Calendar(一个简单的日历选择弹框)

Repository from Github https://github.comLight413/CalendarViewRepository from Github https://github.comLight413/CalendarView

##CalendarView A simple use for iOS Calendar - select date when pop -up。(demo for Xcode8.0 , ios10 ,ARC) 。

CalendarView

Adding to your project

use pod(iOS8.0 and later) :

pod 'PickerCalendarView', '~> 1.0.0'

not pod :
download the demo , pull `PickerCalendarView folder ` into your project.

only use `CalendarView` :

CalendarView * _v = [[CalendarView alloc]initWithFrame:CGRectMake(10, 100, 300, 250)];
    _v.delegate = self;
    [self.view addSubview:_v];    

as follows:


CalendarView

if you think the headview isn't right ,you can hide it in file CalendarView.h ,just like this

//#define NeedHeadView

and add custom .

use pop-up function:

[PickerCalendarView showWithDelegate:self];

you should implement it's delegate mothods for get data. that is all , just see code.

About

A simple use case for iOS Calendar(一个简单的日历选择弹框)

License:MIT License


Languages

Language:Objective-C 77.8%Language:Ruby 22.2%