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

David Ogilvy's 10 marketing rules are still effective today

Make research a top priority. An advertiser who d...

Google App Ads campaign, ad placement!

In August, Google officially released the latest ...

Is your phone secure?

Many people may have been scared by the "sup...

Artificial intelligence is the looming demon

For decades, futurists have been worried about co...

User operation: Can you survive without growth?

Introduction: " Refined user data is not obt...

The outstanding appearance of corals is largely due to these “green pearls”!

Zooxanthellae are yellow-brown single-celled alga...

iOS8 custom input method tutorial: How to create a third-party input method

iOS8 brings a lot of cool features, one of which ...