我在我的iOS应用中使用Tapku
日历。我有这样的事情要做。
我从Web服务获取JSON数据数组。它是这样的:
dates":[{"day_id":1,"color_id":1},
{"day_id":2,"color_id":1},
{"day_id":3,"color_id":1},
{"day_id":4,"color_id":1},
{"day_id":5,"color_id":1},
{"day_id":6,"color_id":1},
{"day_id":7,"color_id":1},
{"day_id":8,"color_id":1},
{"day_id":9,"color_id":1},
{"day_id":10,"color_id":1},
{"day_id":11,"color_id":1},
{"day_id":12,"color_id":1},
{"day_id":13,"color_id":1},
{"day_id":14,"color_id":1},
{"day_id":15,"color_id":1},
{"day_id":16,"color_id":1},
{"day_id":17,"color_id":1},
{"day_id":18,"color_id":1},
{"day_id":19,"color_id":2},
{"day_id":20,"color_id":2},
{"day_id":21,"color_id":1},
{"day_id":22,"color_id":1},
{"day_id":23,"color_id":1},
{"day_id":24,"color_id":1},
{"day_id":25,"color_id":1},
{"day_id":26,"color_id":1},
{"day_id":27,"color_id":2},
{"day_id":28,"color_id":1},
{"day_id":29,"color_id":1},
{"day_id":30,"color_id":1},
{"day_id":31,"color_id":1}]}
每天都有特定的颜色显示在日历上。 colour_id 1 -red,2-green和3-yellow。
我可以改变
- (NSArray*)calendarMonthView:(TKCalendarMonthView *)monthView marksFromDate:(NSDate *)startDate toDate:(NSDate *)lastDate
给出带有颜色ID的日期。我的问题是如何通过检查随特定日期的colour_id来更改Tapkucalender
中的选择图像。
这就是我需要对TapkuCalender