iOS源碼:展示事件的年日歷
作者:佚名
iOS顯示年日歷,可以展示標(biāo)注的事件。
功能分類:生活
支持平臺(tái):iOS
運(yùn)行環(huán)境:iOS
開(kāi)發(fā)語(yǔ)言:Object-c
開(kāi)發(fā)工具:Xcode
源碼大小:103.78KB
源碼下載地址:http://down.51cto.com/data/1982905
源碼簡(jiǎn)介
iOS顯示年日歷,可以展示標(biāo)注的事件。
源碼運(yùn)行截圖

運(yùn)行圖
源碼片段
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- static NSString *yearTableCellId = @"YearTableCellId";
- INOYearTableCell *cell = [tableView dequeueReusableCellWithIdentifier:yearTableCellId];
- if (!cell) {
- cell = [[INOYearTableCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:yearTableCellId];
- [cell setTag:indexPath.row];
- }
- NSDate *yearDate = [_model yearWithOffsetFromCurrentDate:indexPath.row + kHalfCellsCount * (_offset - 1)];
- [cell setupWithYearDate:yearDate];
- [_model makeMonthsImagesWithDate:yearDate ofSize:[INOYearTableCell monthViewSize]
- cancelTag:[cell tag]
- completion: ^(BOOL success, NSArray *monthsImages) {
- if (success && [monthsImages count] > 0) {
- [cell setupWithMonthsImages:monthsImages];
- }
- }];
- return cell;
- }
責(zé)任編輯:閆佳明
來(lái)源:
網(wǎng)絡(luò)整理



























