- - (void) viewDidLoad { [super viewDidLoad];
- for (int index = 1; index < 11; index++) {
- NSString * imgName = [NSString stringWithFormat: @"%d.jpg", index];
- UIImage * img = [UIImage imageNamed: imgName];
- UIImageWriteToSavedPhotosAlbum(img, nil, nil, nil);
- }
- }
来源: http://lib.csdn.net/snippet/ios/42776