[__NSCFString countByEnumeratingWithState:objects:count:]

时间:2014-06-11 08:22:41

标签: ios objective-c uiimage nsarray

我想将图像数组保存到相册中。当我使用单个图像进行保存时,它可以正常工作[UIImage imageNamed:" test.png"]。但如果我使用图像阵列,我会收到错误'

NSArray *photos = [NSArray arrayWithObjects:
                       [UIImage imageNamed:@"img.jpg"],
                       [UIImage imageNamed:@"img1.jpg"],
                       [UIImage imageNamed:@"img2.jpg"],
                       nil] ;


    for ( UIImage *imagesave in photos )

      //image1 = [UIImage imageNamed:image];

    [self.library saveImage:imagesave toAlbum:@"Art" withCompletionBlock:^(NSError *error) {
        if (error!=nil) {
            NSLog(@"Big error: %@", [error description]);
        }
    }];

0 个答案:

没有答案