11-Load images in collection cells asynchronously

Опубликовано: 16 Август 2017
на канале: Nguyen Duc Hoang
708
5

This video guides you how to load image to an UIImageView asynchronously. Images is dowloaded from an URL.
Add imageURL property to Food class. Initializing Food objects with image links.You can see how to make these API by reading my video playlist "Node.js ES6 tutorials".
Extending a method for UIImageView class: this function will load in URL using URLSession.
Dispatch MainQueue(or UI process) to update images when they are loaded asynchronously.
SUBSCRIBE TO MY CHANNEL FOR MORE INTERESTING VIDEOS:
   / nguyenduchoang  
Twitter:   / nguyend97601913  
Facebook:   / nguyen.duc.hoang.bk