基于JTCalendar改写的日历控件:TUCalender

jopen 9年前

根据业务需要基于JTCalendar改写的日历控件。

This is a custom calendar view based on JTCalendar. Customize and localize to meet other requirements of our own. Will not be updated with JTCalendar.

Screenshots

基于JTCalendar改写的日历控件:TUCalender

Features

  • Weekend day special appearance
  • custom selected state

Usage

If you are using storyboard or xib file , add constraints to make it work as the demo shows.

If you are using code initialization , add following constraint to make it work:

  [self.contentView addConstraint:[NSLayoutConstraint constraintWithItem:self.TUcalendarHeaderView attribute:NSLayoutAttributeLeading relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeLeading multiplier:1 constant:0]];      [self.contentView addConstraint:[NSLayoutConstraint constraintWithItem:self.TUcalendarHeaderView attribute:NSLayoutAttributeTrailing relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeTrailing multiplier:1 constant:0]];      [self.contentView addConstraint:[NSLayoutConstraint constraintWithItem:self.TUcalendarContentView attribute:NSLayoutAttributeLeading relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeLeading multiplier:1 constant:0]];      [self.contentView addConstraint:[NSLayoutConstraint constraintWithItem:self.TUcalendarContentView attribute:NSLayoutAttributeTrailing relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeTrailing multiplier:1 constant:0]];

项目主页:http://www.open-open.com/lib/view/home/1440748429700