1and2papa / CTAssetsPickerController

iOS control that allows picking multiple photos and videos from user's photo library.
MIT License
2.15k stars 550 forks source link

some images not in PHCollection,CTAssetsPickerController can not see it #221

Open singer1026 opened 8 years ago

singer1026 commented 8 years ago

I have some images ,its not in any PHCollection. CTAssetsPickerController can't find that images

in Photos.app , i can see it in Photo tabbar but i can't see those images in Albums tabbar.

I use AssetsLibrary to read it,the operation success

Can you add a collection named "All"?

1and2papa commented 8 years ago

@singer1026, that strange. Call you illustrate how you import those photos which only shows in "Photos" tab?

singer1026 commented 8 years ago

Sorry about that! The ipad is not mine. I don't know he how to operate.

iOS version:8.0.2 In Photos.app Photos.app

img1: img1

img2: img2

code:

- (void)pickAssets:(id)sender
{
    [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status){
        dispatch_async(dispatch_get_main_queue(), ^{

            // init picker
            CTAssetsPickerController *picker = [[CTAssetsPickerController alloc] init];

            // set delegate
            picker.delegate = self;

            // to show selection order
            picker.showsSelectionIndex = YES;

            picker.showsEmptyAlbums = NO;

            // to present picker as a form sheet in iPad
            if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
                picker.modalPresentationStyle = UIModalPresentationFormSheet;

            // present picker
            [self presentViewController:picker animated:YES completion:nil];

        });
    }];
}

album repeat

I can't find pictures on the albums

So I change your code. remove smart album and add special collection albums named "All Photos"

finally ! I can find all photos in "All Photos"

img3: img3

1and2papa commented 8 years ago

Sorry, development of this project is suspended. Please read the home page.