【发布时间】:2012-08-21 01:47:02
【问题描述】:
我正在使用ELCimagepicker 将多个图像附加到电子邮件中,但我不确定如何使每个NSData 都独一无二,以便我可以将它们附加到我的电子邮件中。
>
- (void)launchController {
ELCAlbumPickerController *albumController = [[ELCAlbumPickerController alloc] initWithNibName:@"ELCAlbumPickerController" bundle:[NSBundle mainBundle]];
ELCImagePickerController *elcPicker = [[ELCImagePickerController alloc] initWithRootViewController:albumController];
[albumController setParent:elcPicker];
[elcPicker setDelegate:self];
[self presentModalViewController:elcPicker animated:YES];
}
- (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info {
[self dismissModalViewControllerAnimated:YES];
int i = 0;
for(NSDictionary *dict in info) {
i++;
UIImageView *imageview = [[UIImageView alloc] initWithImage:[dict objectForKey:UIImagePickerControllerOriginalImage]];
NSData *name = UIImageJPEGRepresentation(imageview, 1.0);
}
}
【问题讨论】:
-
谢谢,但我没有固定数量的图片可以上传,这就是我遇到这么多问题的原因
标签: iphone ios image email attachment