fergusding / FDCalendar

A custom calendar control in iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • The instance of it is init with a date, and you don't have to set it's frame but change it's frame's origin to show it at th position you like.
    FDCalendar *calendar = [[FDCalendar alloc] initWithCurrentDate:[NSDate date]];
    CGRect frame = calendar.frame;
    frame.origin.y = 20;
    calendar.frame = frame;
    [self.view addSubview:calendar];

#License MIT

About

A custom calendar control in iOS

License:MIT License


Languages

Language:Objective-C 87.8%Language:Ruby 12.2%