我创建了一个UIImagePicker,如下:
imageListView = [[UIImagePickerController alloc] init];
imageListView.allowsImageEditing = NO;
imageListView.delegate = self;
imageListView.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
我正在为图像选择器编写didFinishPickingMediaWithInfo的自定义覆盖。
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
UIImage* picture = [info objectForKey:UIImagePickerControllerOriginalImage];
//Do stuff relating to picture
}
正如你所看到的,我在覆盖所以UIImagePicker在选择图像后没有关闭,因为我希望用户能够从他们的相册中选择多个图像。有没有办法可以向用户提供他们选择的图像的视觉指示?例如,我可以将所选图像变为红色或将其从UIImagePicker中删除吗?
答案 0 :(得分:1)
你需要做两件事来实现多选,