Skip to content

chronicqazxc/LazyLoading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LazyLoading

Lazy loading is a design pattern widely used software industry to defer tasks of object until the point at which it is needed. It not only efficiency in program's operation but also improved the user experience.

This demo is about table view image lazy loading implemented by Operations, inspired by Apple's LazyTableImages and raywenderlich's operationqueue-tutorial

Screenshot

lazy_loading

HighLevel architecture

lazy_loading

Operation

Operation is a high level API based on GCD that has some advance features like cancel, suspend, and resume. Operation only can perform once and cannot be execute again. We usually put operations into operationqueu but you can manually trigger operation by calling its start() method and you will take care the readiness state.

OperationQueue

An OperationQueue executes its queued operations.

Author: Wayne Hsiao

About

Implements lazy image loading by Operation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages