UIImage in uitableViewcell slowdowns scrolling table

后端 未结 3 1966
说谎
说谎 2020-12-22 06:59

Hello I am trying to get profile image of facebook user in Table\'s cell.image. But It slows down Scrolling of Table view.Then I used Asynchronous loading of image link But

3条回答
  •  旧巷少年郎
    2020-12-22 07:43

    Its slows down because you are setting the image every time the cellForRowAtIndexPath: is called. Add the image to the cell's imageView only inside the if (cell == nil) block. Then you will see the improvement in scrolling.

提交回复
热议问题