自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

iOS源碼:展示事件的年日歷

移動開發(fā)
iOS顯示年日歷,可以展示標注的事件。

功能分類:生活

支持平臺:iOS

運行環(huán)境:iOS

開發(fā)語言:Object-c

開發(fā)工具: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開源

2013-06-17 10:31:42

WP7開發(fā)日歷控件源碼下載

2020-07-06 15:03:01

iOS 14Safari功能

2023-10-12 22:44:16

iOS事件響應鏈

2024-11-07 22:58:33

2017-06-12 10:31:17

Redis源碼學習事件驅動

2013-07-29 04:29:29

iOS開發(fā)iOS開發(fā)學習禁用UITabBarC

2011-01-21 17:00:49

Thunderbird日歷

2017-05-04 18:00:43

iOS日歷SKCalendarV

2017-02-09 15:15:54

Chrome瀏覽器

2024-12-16 17:59:55

2022-01-05 19:11:03

網絡攻擊黑客網絡安全

2023-10-13 07:29:23

PixiJSRunner

2015-01-20 17:15:55

iOS源碼滾動視圖

2017-12-21 15:42:08

iOS傳遞機制

2015-02-11 18:02:59

iOS源碼Swift圖表庫

2012-01-16 14:12:44

賽門鐵克源代碼泄漏黑客
點贊
收藏

51CTO技術棧公眾號