基于JTCalendar改寫的日歷控件:TUCalender
根據業務需要基于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
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]];
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!