FSCalendar使用实践
使用 实践
2023-06-13 09:17:16 时间
用过JTCalendar,没有农历显示,然后就换成了FSCalendar,上代码 @property (strong, nonatomic) FSCalendar *calendar;
(FSCalendar *)calendar { if (_calendar == nil) {
_calendar = [[FSCalendar alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, 280)];
_calendar.dataSource = self;
_calendar.delegate = self;
_calendar.allowsMultipleSelection = NO;
_calendar.scrollEnabled = NO;
_calendar.appearance.headerDateFormat = @"M月";
_calendar.appearance.selectionColor = Color_Red;
_calendar.appearance.headerTitleColor = [UIColor blackColor];
_calendar.appearance.headerMinimumDissolvedAlpha = 0;
_calendar.appearance.caseOptions = FSCalendarCaseOptionsHeaderUsesUpperCase;
// 设置周字体颜色
_calendar.appearance.weekdayTextColor = [UIColor lightGrayColor];
_calendar.placeholderType = FSCalendarPlaceholderTypeNone;
_calendar.appearance.todayColor = [UIColor whiteColor];
[_calendar selectDate:[NSDate date] scrollToDate:YES];
} return _calendar; } 如果你用到了事件需要显示小点的话你要记得刷新数据[self.calendar reloadData];
相关文章
- 【Jenkins 插件】Jenkins Pipeline 流水线插件的使用,Vue 项目自动化构建和部署实战
- Flowable实战-Camel使用「建议收藏」
- boost::lockfree使用介绍
- 【说站】python os.path.join()函数的使用
- 使用eslint + prettier + husky + lint-staged 约束项目的最佳实践!
- 使用 Rook 构建生产可用存储环境实践
- google Guava包RateLimiter使用最佳实践
- BottomSheet底部动作条使用详解手机开发
- Oracle 视图 DBA_APP_ERRORS 官方解释,作用,如何使用详细说明
- 最佳实践:Linux vi中的搜索使用(linuxvi查找内容)
- 时间处理使用Java设置Redis过期时间最佳实践(redisjava过期)
- 使用SVN管理Linux用户的最佳实践(svnlinux用户)
- 禁止使用SQL Server系统(禁止sqlserver)
- 技巧CSDN上MySQL使用最佳实践精选(csdn中mysql使用)
- 如何使用Oracle进行冷备份(oracle冷备份怎么做)
- 免费使用redis瞭望数据库信息(免费redis查看数据库)
- Oracle 位运算函数正确使用利器(oracle 位运算函数)
- 数据使用Oracle的imp工具导入数据(oracle中imp导入)
- PHP定界符使用技巧
- javz笔记之:有趣的静态方法的使用
- Jquery模板数据绑定插件的使用方法详解
- Python字典dict使用介绍