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

IQIYI's Ma Dong: Pirated video websites are doomed to fail

On September 16, at the International Copyright F...

"Air taxis" are here! Can we take a flying taxi when we go out in the future?

In Shanghai, I get off work at 6pm and go to Yang...

Ximalaya FM Product Experience Analysis Report (Part 1)

As the largest audio platform in China, Himalaya ...

ENISA: 2023 AI and Standardized Cybersecurity Report

ENISA has published the "Cybersecurity Repor...

What is a clear process for setting up a Toutiao account?

The Bytedance advertising platform, also known as...

Wolf Shuai's A-share Devil's Dictionary - Stock Market Secrets

Lang Shuai's A-share Devil's Dictionary -...

The official version of iOS 17.4 is here, summary of new features!

Early this morning, Apple pushed the official ver...