Program crashes when loading 200+ subview images in the UIScrollView

前端 未结 3 360
情深已故
情深已故 2021-01-28 07:00

I am developing a similar program like Photos in the iPhone using ALAssetLibrary. I am trying to load the images in a scrollview. Everything works fine when the album has small

3条回答
  •  别那么骄傲
    2021-01-28 07:49

    You should use scroll view delegation to determine which images would be showing on the screen at the current time, and only have those loaded in memory.

    Also, if you are displaying a much smaller than the actual image size, you should resize the image and use the smaller image.

提交回复
热议问题