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.
- Weekend day special appearance
- custom selected state
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]];
TUCalendar is released under the MIT license. See the LICENSE file for more info.