save images to photo library, but sometimes can not work correctly
<p>I used the codes below to save images to photo librabry</p>

<pre><code> for(int i=0;i&lt;[imageNameArray count];i++)
{


    NSMutableString *sss=[[NSMutableString  alloc] initWithString: myAppPath];
    [sss appendString:@"/"] ;
    [sss appendString: [NSString stringWithFormat:@"%@",[imageNameArray objectAtIndex:i]  ] ] ;
    UIImage *image = [[[UIImage alloc] initWithContentsOfFile:sss]autorelease];
    UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
    [sss release];

}
</code></pre>

<p>but sometimes, it can not save images correctly, I found that in photo library, there are one or more black blocks replace the saved images in thumbnail mode, but if I click the black blocks, the original images can display correctly.</p>

<p>Is there anyone met the same problem?</p>

<p>Welcome any comment</p>

<p>Thanks</p>

<p>interdev</p>
