How to efficiently show many Images? (iPhone programming)

后端 未结 4 1282
感动是毒
感动是毒 2020-12-16 03:18

In my application I needed something like a particle system so I did the following:

While the application initializes I load a UIImage

laserImage = [         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 03:48

    The UIImageView is made to display single OR multiple images. So, instead of creating every time a UIImageView, you should consider creating a new image and add it to the UIImageView instead.

    See here.

提交回复
热议问题