Setting image property of UIImageView causes major lag

后端 未结 2 489
自闭症患者
自闭症患者 2020-12-01 01:31

Let me tell you about the problem I am having and how I tried to solve it. I have a UIScrollView which loads subviews as one scrolls from left to right. Each subview has 10-

2条回答
  •  有刺的猬
    2020-12-01 02:23

    I think, the problem could be Images themselves. For example - I got in one of my projects 10 images 640x600 layered with alpha transparency on each other. When I try to push or pop viewcontroller from this viewcontroller.. it lags a lot.

    when I leave only few images or use quite smaller images - no lag.

    P.S. tested on sdk 4.2 ios5 iphone 4.

提交回复
热议问题