2017-05-09 19 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) 
}