0
我正在做一個涉及ALassets的項目。我知道,從iphoto的每個圖片都屬於一個事件。事件似乎像文件夾。我不清楚的是,如果您將手機同步到PC而不是Mac,那麼每項資產是否仍然屬於某個事件?ALAsset每個資產是否屬於一個事件?
感謝您的建議。
我正在做一個涉及ALassets的項目。我知道,從iphoto的每個圖片都屬於一個事件。事件似乎像文件夾。我不清楚的是,如果您將手機同步到PC而不是Mac,那麼每項資產是否仍然屬於某個事件?ALAsset每個資產是否屬於一個事件?
感謝您的建議。
AssetLibrary具有所謂的組。這些組包含資產。有以下類型的組:
enum {
ALAssetsGroupLibrary = (1 << 0), // The Library group that includes all assets.
ALAssetsGroupAlbum = (1 << 1), // All the albums synced from iTunes or created on the device.
ALAssetsGroupEvent = (1 << 2), // All the events synced from iTunes.
ALAssetsGroupFaces = (1 << 3), // All the faces albums synced from iTunes.
ALAssetsGroupSavedPhotos = (1 << 4), // The Saved Photos album.
ALAssetsGroupPhotoStream = (1 << 5), // The PhotoStream album.
ALAssetsGroupAll = 0xFFFFFFFF, // The same as ORing together all the available group types,
// with the exception that ALAssetsGroupLibrary is not included.
};
資產只是事件的一部分,如果它已通過iTunes同步或由Camera Connection Kit創建。在設備上拍攝的照片始終是ALAssetsGroupSavedPhotos(相機膠捲)的一部分,並且可以另外分配給用戶創建的相冊。