# XGCalendar **Repository Path**: Feng_999/XGCalendar ## Basic Information - **Project Name**: XGCalendar - **Description**: 一个简单的日历功能(月历和周历) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-06-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # XGCalendar 一个简单的日历功能(月历和周历)(ios6.0及以上) 参考了SACalendar(https://github.com/nopshusang/SACalendar) 中对 DMLazyScrollView 的使用以及一些UIkit和Foundation相关的扩展类。 使用方法: CGRect rect =CGRectMake(0, [[UIApplication sharedApplication] statusBarFrame].size.height, [[UIApplication sharedApplication] statusBarFrame].size.width, [[UIScreen mainScreen] bounds].size.height - [[UIApplication sharedApplication] statusBarFrame].size.height); XGCalendar *calendar = [[XGCalendar alloc]initWithFrame:rect scrollDirection:ScrollDirectionHorizontal pagingEnabled:NO]; calendar.delegate = self; calendar.dataSource = self; [self.view addSubview:calendar]; 然后根据需要,实现XGCalendarDelegate和XGCalendarDataSource中的一些方法即可。