http://blog.csdn.net/wis8520/article/details/70157451
#import "FSCalendar-umbrella.h"
FSCalendarDataSource,FSCalendarDelegate,FSCalendarDelegateAppearance 遵守三个协议
@property (nonatomic, strong) FSCalendar*calendar; //日历视图
下面这一步是修改X轴的显示内容的 因为接口只有double类型了想要显示城市名称之类的 需要再创建个类
self.xAxisValueFormatter = [[XAxisValueFormatter alloc] init];
xAxis.valueFormatter = self.xAxisValueFormatter;
@interface XAxisValueFormatter : NSObject
@property (nonatomic, strong) NSArray *xAxisDatas;
@end
@implementation XAxisValueFormatter
/// 实现协议方法,返回 x 轴的数据
(NSString )stringForValue:(double)value axis:(ChartAxisBase )axis {
ClassLessonTestScoreListModel *model = self.xAxisDatas[(int)value - 1];
return [NSString stringWithFormat:@"%@", model.lessonNoText];
}
@end