Detect same images name {iPhone SDK}
<p>i want create image animation , i have 50 images with png format now i want set images name ... something like this but doesnt work !</p>

<p>my images name are : <code>iamge_0000 to image_0050</code></p>

<pre><code>pasheAnimation.animationImages  = [NSArray arrayWithObjects:
                                  [UIImage imageNamed:@"pashe_0000.png"],nil];

    [pasheAnimation setAnimationRepeatCount:5];
    pasheAnimation.animationDuration = 4;
    [pasheAnimation startAnimating];
</code></pre>

<p>??!?!?!? </p>

<p>jason Code [EDITED] :</p>

<pre><code>NSMutableArray* myImages = [[[NSMutableArray alloc] initWithCapacity:607] autorelease];
    for( int i = 1; i &lt;= 607; i++ ) {
        [myImages addObject:[UIImage imageNamed:[NSString stringWithFormat:@"p%d.png",i]]];
    }

    butterflyView.animationImages = myImages;
    [butterflyView setAnimationRepeatCount:100];
    butterflyView.animationDuration = 0;
    [butterflyView startAnimating];
</code></pre>
