Open brandy2015 opened 1 year ago
let options = PHFetchOptions() options.predicate = NSPredicate(format: "pixelHeight / pixelWidth == %d", 2) configure.fetchOption = options
It doesn't work.
Wanna get 1:2 pixelHeight : pixelWidth
func canSelectAsset(phAsset: PHAsset) -> Bool { if (phAsset.pixelWidth / phAsset.pixelHeight) == 2 || (Double(phAsset.pixelWidth) / Double(phAsset.pixelHeight)) == 0.5{ return true } }
it's not enough
let options = PHFetchOptions() options.predicate = NSPredicate(format: "pixelHeight / pixelWidth == %d", 2) configure.fetchOption = options
It doesn't work.
Wanna get 1:2 pixelHeight : pixelWidth