Is it possible to reload only the data added in ios collectionView? Like notifyItemRangeInserted on Android?

Asked 2 years ago, Updated 2 years ago, 84 views

Add data from the list and self.CollectionView.reloadData() will refresh the screen.

After scrolling, add data and call self.CollectionView.reloadData() I forgot about the previously drawn screen, and I can draw it again Is there a way to put only the data added to the bottom??

reloaddata

2022-09-21 21:08

1 Answers

It's a self-answer Causes and Solutions Cause The cell contains an image and loads the image from an external URL. When loading is complete, the transparency level from 0 to 1 is slowly It was redrawn and blinking. Solution I can't help but draw the cell again when reloading, but I gave the existing drawing a separator Redrawing started with a transparency of 1. This does not cause a blinking problem.


2022-09-21 21:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.