0
AssetGridModel繼承PHAsset類並添加IsSelected屬性如何繼承PHAsset類,並添加屬性
fileprivate var fetchResult: [AssetGridModel]!
let allPhotosOptions = PHFetchOptions()
allPhotosOptions.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)]
let fetchAssets = PHAsset.fetchAssets(with: allPhotosOptions)
或
let fetchAssets = AssetGridModel.fetchAssets(with: allPhotosOptions)
爲什麼我已經出來的類型是PHAsset,不是我寫了繼承類,不能改變我添加的屬性?
請告訴我,謝謝