2017-05-09 60 views

回答

0
let assetPath = info[UIImagePickerControllerReferenceURL] as! NSURL 

let asset = PHAsset.fetchAssets(withALAssetURLs: [assetPath as URL], options: nil).lastObject 

PHImageManager().requestImageData(for: asset!, options: nil) { (data, value, orientation, info) in 
// data?.count will give total bytes 
print(data?.count) 
} 
相關問題