App Crashing when using large images on iOS 4.0

后端 未结 3 1111
闹比i
闹比i 2020-12-15 14:03

I\'ve been having a problem to show large images on a scrollview, the images are 2,4 - 4,7 MB. It runs fine on the 3GS and on the simulator. But whenever I try to run on a 3

3条回答
  •  心在旅途
    2020-12-15 14:43

    The GPUs in the iPhone 3G and iPod Touch 1G/2G only have room for 1k by 1k textures, which seems to also be used for 2D image rendering. Anything larger needs to be tiled to fit the hardware graphics renderer.

    The 3GS and newer have a different GPU which can support larger textures, and thus images.

提交回复
热议问题