วิธีรับรายละเอียดเจ้าของอัลบั้มที่แชร์ของ iCloud

ฉันกำลังดำเนินการเพื่อรับรายละเอียดอัลบั้มที่แชร์ของ iCloud

ฉันได้รับอัลบั้มแชร์ iCloud ทั้งหมดสำเร็จโดยใช้รหัสนี้

NSMutableArray *cloudFetchResultArray = [[NSMutableArray alloc] init];
NSMutableArray *cloudFetchResultLabel = [[NSMutableArray alloc] init];
NSMutableArray *cloudFetchResultPersonName = [[NSMutableArray alloc] init];

PHFetchResult *CloudShared = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum subtype:PHAssetCollectionSubtypeAlbumCloudShared options:nil];
for(PHCollection *collection in CloudShared)
{

    if ([collection isKindOfClass:[PHAssetCollection class]])
    {
        PHAssetCollection *assetCollection = (PHAssetCollection *)collection;

            PHFetchOptions *options = [[PHFetchOptions alloc] init];
            options.predicate = [NSPredicate predicateWithFormat:@"mediaType in %@", self.picker.mediaTypes];
            options.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"creationDate" ascending:NO]];

            PHFetchResult *assetsFetchResult = [PHAsset fetchAssetsInAssetCollection:assetCollection options:options];
            if(assetsFetchResult.count>0)
            {
                [cloudFetchResultArray addObject:assetsFetchResult];
                [cloudFetchResultLabel addObject:collection.localizedTitle];

            }
    }
}

แต่ฉันไม่ได้รับรายละเอียดเจ้าของอัลบั้มที่แชร์ของ iCloud สำหรับอดีต ชื่อ นามสกุล ชื่อเต็ม ฯลฯ

สำหรับ EX: ภาพตัวอย่าง

เมื่อฉันแก้ไขจุดบกพร่องในเวลานั้น ฉันแสดงข้อมูลทั้งหมดนี้:

ป้อนคำอธิบายรูปภาพที่นี่

แต่ฉันไม่พบวิธีแก้ปัญหาในการรับค่านี้ นอกจากนี้ ฉันยังดู Photo Framework แต่ในกรอบงานนี้ ฉันไม่พบคลาส PHCloudSharedAlbum ใด ๆ

ดังนั้นโปรดช่วยฉันในการรับข้อมูลอัลบั้มที่แชร์ แจ้งให้เราทราบข้อมูลเพิ่มเติมที่จำเป็น

ขอบคุณล่วงหน้า.


person Dixit Akabari    schedule 26.11.2019    source แหล่งที่มา