Lehman2020
Lehman2020

Reputation: 637

How to show most recent photos in UIImagePicker?

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

This is what I have so far

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];

Upvotes: 0

Views: 82

Answers (1)

matt
matt

Reputation: 535067

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

Not using UIImagePickerController, no. You would have to write your own picker.

Upvotes: 1

Related Questions