iOS source code: annual calendar showing events

iOS source code: annual calendar showing events

Functional classification: Life

Supported platforms: iOS

Operating environment: iOS

Development language: Object-C

Development tools: Xcode

Source code size: 103.78KB

Source code download address: http://down..com/data/1982905

Source code introduction

iOS displays a yearly calendar that can show marked events.

Source code running screenshot

Run Chart

Source code snippet

  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;
  26. }

Source code download address: http://down..com/data/1982905

<<:  Android application source code custom controls

>>:  iOS source code: Chart library developed in Swift

Recommend

What exactly are the cloud phones that Baidu and Huawei are working on?

[[350635]] Recently, Baidu officially released th...

Personal pension is coming, will my pension increase?

Mixed Knowledge Specially designed to cure confus...

4 “Golden Rules” to Increase Revenue from Incentive Video Ads

The "dark horse" of motivational videos...

The whole network is taking on the challenge? Urgent reminder!

The girls in high buns and green clothes walked s...

Stock Broker Training Camp: Only Know How to Trade Stocks Episode 18

Stock Brother Training Camp: Only Know How to Tra...