Scroll view and table view performance when loading images from disk

后端 未结 5 1491
说谎
说谎 2021-02-04 18:50

I\'m trying to improve the performance of my image-intensive iPhone app by using a disk-based image cache instead of going over the network. I\'ve modeled my image cache after S

5条回答
  •  攒了一身酷
    2021-02-04 19:27

    I've had this problem - you are hitting the limit of how fast the UI can load an image while scrolling - so i'd just work around the problem and improve the user experience.

    1. Only load images when the scroll is at a new 'page' (static rectangle) and
    2. Put an activity indicator behind a transparent scroll view to handle the case where the user is scrolling faster than the app can load content

提交回复
热议问题