Swift: Loading Images Asynchronously and storing with NSCache and NSURLCache

preview_player
Показать описание
Tutorial on creating the Facebook news feed UI:
Part 1:

This tutorial is quick discussion on the proper way to cache UIImage objects after fetching it over the network. We go over the more naive approach of implementing a String to UIImage dictionary. Then we get a bit more clever and use an NSCache object. Finally, we utilize NSURLSession's default cache mechanism by setting up our own cache with NSURLCache.

Completed Project:

Network Link Conditioner:
Рекомендации по теме
Комментарии
Автор

you are the best! this is an understatement for you. please never stop making tutorials.

ParthAnand
Автор

Your way of explaining things is way super than others.... thanks for yet another amazing video....

TheKaushal
Автор

I love the way you implemented the activityIndicatorView on each StatusImageView.

Again, thanks for what you're doing.

Happy Sunday.

locacocavola
Автор

And before i forget, congratulations! Your videos are amazing !

samuelpmilanez
Автор

Once again an excellent tutorial! This one saved me a lot of time. Thank you Brian!

pasib
Автор

Amazing tutorials, learnt a lot of stuff and made me a better programmer. Thank you.

abhisheksitar
Автор

You are awesome . I actually learn everything in so detail in your channel . You're great .

shivamroy
Автор

Thank you so much man. You really helped me a lot. Please keep up the great work!

csrkn
Автор

Nice tutorial.all cache basic is covered, ,,Really helpful...

yogitamunde
Автор

Your tutorials are amazing man.
Thanks for that

TheYannsonnboys
Автор

Great Tutorial :D Thank you for this :) keep up the good work.

AnuragKashyap
Автор

This is amazing. Thanks a lot.
Waiting for more tutorials

akzuki
Автор

Man you are amazing! Thanks once again!

michaelkornelakis
Автор

Thanks again for your sharing!!! Really hero

artho
Автор

You are amazing thanks alot for sharing your knowledge

haleemmilk
Автор

Hi Brian can you please make another video on how to properly clear the cache when it is full using different methods?

isox
Автор

Excellent tutorial! Thank you so much, for saving my homework!! lol

johnhan
Автор

Is it possible to make image height dynamic in the cell, as you have done with status textview.
PS: when you have url of that image(dynamic content)

VivekVerma
Автор

Hi Brian, thank you for this amazing tutorial. One question: the images remains in cache when the app is in background mode?

AlessandroArcidiaco
Автор

there's something missing between this video and the one before it, in the one before it you didn't have FeedCell file and image url was not yet set up.

megaman