iOS源码:展示事件的年日历

移动开发
iOS显示年日历,可以展示标注的事件。

功能分类:生活

支持平台:iOS

运行环境:iOS

开发语言:Object-c

开发工具:Xcode

源码大小:103.78KB

源码下载地址:http://down.51cto.com/data/1982905

源码简介

iOS显示年日历,可以展示标注的事件。

源码运行截图

运行图

源码片段

  1. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 
  2.       
  3.     static NSString *yearTableCellId = @"YearTableCellId"
  4.       
  5.     INOYearTableCell *cell = [tableView dequeueReusableCellWithIdentifier:yearTableCellId]; 
  6.       
  7.     if (!cell) { 
  8.         cell = [[INOYearTableCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:yearTableCellId]; 
  9.         [cell setTag:indexPath.row]; 
  10.     } 
  11.       
  12.     NSDate *yearDate = [_model yearWithOffsetFromCurrentDate:indexPath.row + kHalfCellsCount * (_offset -  1)]; 
  13.     [cell setupWithYearDate:yearDate]; 
  14.       
  15.     [_model makeMonthsImagesWithDate:yearDate ofSize:[INOYearTableCell monthViewSize] 
  16.                            cancelTag:[cell tag] 
  17.                           completion: ^(BOOL success, NSArray *monthsImages) { 
  18.                                 
  19.                               if (success && [monthsImages count] > 0) { 
  20.                                   [cell setupWithMonthsImages:monthsImages]; 
  21.                               } 
  22.                                 
  23.                           }]; 
  24.       
  25.     return cell; 

源码下载地址:http://down.51cto.com/data/1982905

责任编辑:闫佳明 来源: 网络整理
相关推荐

2016-03-14 10:20:41

日历动画Android源码

2010-10-18 09:10:57

Google日历宕机

2015-07-08 16:46:05

iOS键盘

2021-12-20 15:06:09

JekyllGit开源

2020-07-06 15:03:01

iOS 14Safari功能

2013-06-17 10:31:42

WP7开发日历控件源码下载

2023-10-12 22:44:16

iOS事件响应链

2013-07-29 04:29:29

iOS开发iOS开发学习禁用UITabBarC

2017-06-12 10:31:17

Redis源码学习事件驱动

2017-05-04 18:00:43

iOS日历SKCalendarV

2011-01-21 17:00:49

Thunderbird日历

2017-12-21 15:42:08

iOS传递机制

2017-02-09 15:15:54

Chrome浏览器

2023-10-13 07:29:23

PixiJSRunner

2015-01-20 17:15:55

iOS源码滚动视图

2015-02-11 18:02:59

iOS源码Swift图表库

2011-08-03 17:32:17

IOS UIScrollVi touch

2022-01-05 19:11:03

网络攻击黑客网络安全

2012-01-16 14:12:44

赛门铁克源代码泄漏黑客

2013-05-28 17:14:01

iOS开发移动应用移动开发
点赞
收藏

51CTO技术栈公众号