fergusding / FDCalendar

A custom calendar control in iOS
MIT License
114 stars 36 forks source link

FDCalendar

A custom calendar control in iOS

Introduction

FDCalendar is a custom calendar control which includes world and chinese calendar date. It supports scrolling by left and right to jump to previous or next month date, also it can jump to the date which is selected. Otherwise it seems beautiful and good using. If you want to change some style of it, you need to fork it and modify the properties by yourself. If you think it is helpful, please star it.

Preview

preview

ScreenShot

one two two

Get started

  1. Download the source file in the folder FDCalendar.
  2. Add the FDCalendar.h and FDCalendar.m files to your project.
  3. Import the FDCalendar.h file where you want to use it. Jsut add a instance of it to your view as a subview.

Usage

FDCalendar

    FDCalendar *calendar = [[FDCalendar alloc] initWithCurrentDate:[NSDate date]];
    CGRect frame = calendar.frame;
    frame.origin.y = 20;
    calendar.frame = frame;
    [self.view addSubview:calendar];

License

MIT