What is the best way to play an animation frame by frame?
<p>I draw some GIS data dynamically, based on user's control, into CGImageRef.
But how to play these frame like an animation efficiently in an UIImageView?</p>

<p>After searching and surveying, the way to play an animation in UIImageView is preloading all images you need,and invoking the startanimating method,like this:</p>

<p>myImageView.animationimages=[NSArray arrayWithObjects:1uiimage,2uiimage,....,nil];
[myImageView startAnimating];</p>

<p>But the waiting time is too long if i preload all UIImages, because i have more than 400 frames each time.</p>

<p>I want to play the animation like a stream,real time stream, how to do that?
Deeply appreciating if you could give me any idea or an example. :)</p>
