Ios uitableview scrolling download images github






















Sign in to your account. The view displays around 4 or 5 cells on the screen. After this, scrolling down the list is fine as all subsequent images load instantly loading thumbnails from file, no web requests. Closing the view and returning to it also works fine loading MemoryCache seems to work instantly every time.

I've tested multiple setups to see if it was something in the architecture I'm using outside of FFImageLoading All the above showed the same experience, first cells all seem to get blocked. Below are some example log outputs. This is how it looks when the first load of cells all get 'blocked' and then appear simultaneously if I scroll while this blocking is happening, all subsequent cells get blocked too for longer and then ALL images finish at the same time However, sometimes it works fine as expected and this is the log I'd see in that instance Edit - Just for clarity.

I am not talking about cached images here. Branches Tags. Could not load branches. Could not load tags. Latest commit. Git stats commits. Failed to load latest commit information. View code. Running an Example Project To run the Example project: Clone the repo with the following command: git clone git github.

LaunchOptionsKey: Any ]? Code of conduct. Releases 7 3. It's still possible to see an image added to an incorrect cell. AndrewRobinson if it doesn't work with fast scrolling, then it doesn't work.

But, I've not seen this approach fail in the way you describe, myself - could you elaborate on how you determined that the cell was being re-used for a different index path while executing the block?

AndrewRobinson if could post a sample project on github or something I could play with I'd love to investigate, as well; beyond looking at your project though I don't have any insight off the top of my head, unfortunately. Alexis Pigeon 7, 11 11 gold badges 37 37 silver badges 44 44 bronze badges. It was interview constraint to implement this without third party libraries. I'd add that, when possible, you should avoid using CocoaPods to solve issues for you without understanding them - that's one of the hallmarks of a good engineer.

If the one you choose provides this functionality, by all means, use it! Yes, I am agree with you dinesharjani. A good engineer should be aware of what the third party library is doing for him and how it is doing it.

In that case the library worked perfect for me regarding response times, etc. That's why I decided to use it. Eric Aya 69k 34 34 gold badges silver badges bronze badges.

Ronak Vora Ronak Vora 2 2 silver badges 12 12 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Linked See more linked questions.

Related 5. Hot Network Questions. Question feed.



0コメント

  • 1000 / 1000