Skip to content

I fixed a bug which can't load the selected photos #34

@Creolophus

Description

@Creolophus

When you picked some photos, when you reopen the Assets, the selection photos which should be ticked do not work well.
To fix this bug, replace these code in AGIPCGridItem.m ,the method is loadImageFromAsset,

- (void)loadImageFromAsset
{
    self.thumbnailImageView.image = [UIImage imageWithCGImage:_asset.thumbnail];
    if ([self.imagePickerController.selection containsObject:self.asset]) {
        self.selected = YES;
    }
}

4e5af8a7-ea68-4073-920e-36ccfaf0b380

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions