GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Cue/CueTableReloader: A really handy class that automatically figures out insertions, deletions, and reloads in UITableView based on unique item keys.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
CueTableReloader.xcodeproj
CueTableReloader.xcodeproj
 
 
CueTableReloader
CueTableReloader
 
 
CueTableReloaderDemo
CueTableReloaderDemo
 
 
CueTableReloaderTests
CueTableReloaderTests
 
 
AUTHORS
AUTHORS
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

CueTableReloader

A really handy class that automatically figures out insertions, deletions, moves, and reloads in UITableView based on unique item keys.

#Usage

  1. Ensure that your data model consists of a two level array: [sections][rows].
  2. Implement the CueTableItem protocol on all of your data objects and ensure that all of your keys are 100% unique.
  3. Replace all reloadData calls with calls to CueTableReloader's reloadData:animated:.
CueTableReloader *reloader = [[CueTableReloader alloc] initWithTableView:tableView];

/* ... */

// Replace all calls to [tableView reloadData] with this.
[reloader reloadData:sections animated:YES];

#Limitations This class works very well for insertions and deletions within the same section. It does its best when existing items reorder relative to each other. Any travel from one section to another is treated as a delete+insert.

####Known Bugs

  • Some complex transitions involving reordering can cause a non-animated reload. Pull requests welcome.

License

Apache License version 2.0

Authors

Cue

Created as part of Back On The Map.

About

A really handy class that automatically figures out insertions, deletions, and reloads in UITableView based on unique item keys.

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

91 stars

Watchers

8 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.