gpt4 book ai didi

ios - 如何在 UIImagePicker 中显示最近的照片?

转载 作者:行者123 更新时间:2023-11-29 00:55:09 25 4
gpt4 key购买 nike

是否可以对图像选择器中显示的图像/视频进行排序,以便只显示当天的照片?

这是我目前所拥有的

pickerMain = [[UIImagePickerController alloc] init];
pickerMain.delegate = self;
[pickerMain setSourceType:UIImagePickerControllerSourceTypeSavedPhotosAlbum];
[self presentViewController:pickerMain animated:YES completion:^{
[[UIApplication sharedApplication] setStatusBarHidden:NO
withAnimation:UIStatusBarAnimationNone];


}];
pickerMain.mediaTypes = [[NSArray alloc] initWithObjects:(NSString *)kUTTypeMovie, kUTTypeImage, nil];
[pickerMain setVideoMaximumDuration:15.0f];

最佳答案

Is it possible to sort the images/videos shown in the Image Picker, so that only the photos from the current day will appear?

不使用 UIImagePickerController,不。您必须编写自己的选择器。

关于ios - 如何在 UIImagePicker 中显示最近的照片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37667166/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com