Skip to content

SergioChan/TUCalender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TUCalender

Brief Intro

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

image

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]];

License

TUCalendar is released under the MIT license. See the LICENSE file for more info.

About

根据业务需要基于JTCalendar改写的日历控件,不间断更新

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published