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

Xiaohongshu keyword optimization and promotion marketing skills!

The rapid development of Xiaohongshu has diversif...

Bloggers must mark! A complete guide to hot topics on Xiaohongshu!

Last week, I updated a tweet about how bloggers o...

Do older people who play these games regularly have a lower risk of dementia?

In 2022, 55 million people worldwide are living w...

A new choice for a 150,000-class family SUV? Test drive Kia EV5

NetEase Auto reported on December 2 that the fami...

Creativity Operations: The Core of Creativity

Door 1: Content Operation Methodology Sharing out...

Chengdu Tea Selection Studio, a great place to drink and taste tea

Appointment arrangements for Chengdu Tea Tasting ...