Hi,
I recently started developing for the iPhone. So far it went quite well, but I ran into a animation problem. Actually the animation works fine but at one specific point the animation stutters.
The situation
My application has one large view of 4 screens wide (1280px) and 1 screen high (480px). It has this size because of the backgroundimage, some nice scenery. This large view can scroll to (4) fixed positions with touches or by some buttons. Each of those 4 positions covers a quarter of the large view.
On position 1,3 and 4 only the backgroundimage is visible, no other views. At position 2 are the settings:
- 3 uibuttons which contain each 2 uilabels, a uiview and a uiimageview
- 1 uibutton containing an uiview with an uiimageview
The animation between the different position is done with an animation block (UIView beginanimation etc).
The problem
The scrolling works really nice between positions, except scrolling to or from position 2. I don't think this position contains two many uiviews (?), but the animations stutters. When I look in Instruments there are no leaks and I don't see any other weird values.
So I was wondering what might cause the stuttering. Which factors are critical for a smooth animation?
Thanks for any reply!
I recently started developing for the iPhone. So far it went quite well, but I ran into a animation problem. Actually the animation works fine but at one specific point the animation stutters.
The situation
My application has one large view of 4 screens wide (1280px) and 1 screen high (480px). It has this size because of the backgroundimage, some nice scenery. This large view can scroll to (4) fixed positions with touches or by some buttons. Each of those 4 positions covers a quarter of the large view.
On position 1,3 and 4 only the backgroundimage is visible, no other views. At position 2 are the settings:
- 3 uibuttons which contain each 2 uilabels, a uiview and a uiimageview
- 1 uibutton containing an uiview with an uiimageview
The animation between the different position is done with an animation block (UIView beginanimation etc).
The problem
The scrolling works really nice between positions, except scrolling to or from position 2. I don't think this position contains two many uiviews (?), but the animations stutters. When I look in Instruments there are no leaks and I don't see any other weird values.
So I was wondering what might cause the stuttering. Which factors are critical for a smooth animation?
Thanks for any reply!