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

"China's Sky Eye" has made new discoveries!

The "China Sky Eye" has made new discov...

Electronic devices make birds dizzy

Migratory birds travel thousands of miles every ye...

Apple's gradually losing TV position is attracting the world's top companies

Reed Hastings, founder and CEO of Netflix, an Ame...

2022 618 Marketing Insights Report

As the most important marketing node in the year,...

What factors make users willing to share?

A few days ago, “My Story with WeChat” went viral...

Damage to the liver, change genes? Do you still dare to "eat rainbow"?

Snacks are really a magical thing. From children ...