ios - Break in animation. -


hello people in application wanted animation. animation has 160 frames , wanted last 10 sec , make loop.

for created array frames , uiimageview.

uiimageview *animimageview; ... nsarray *arrayanim = [[nsarray alloc] initwithobjects:[uiimage imagenamed:@"image0001"],...,nil];  animimageview.animationimages=arrayanim; animimageview.animationduration=10; [animimageview startanimating]; 

this results , animation @ moment startanimating application breaked 7 seconds. there way avoid delay?

you're using memory. 640 x 1136 x 4bpp = 2908160 bytes of memory per image. 160 images that's 465 mb of ram (more 3gs has!)

without knowing animation looks like, suggest try build animation dynamically using uiviews , animating subviews in real time rather using pre-rendered frames.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -