IOS SWIFT PHAsset을 이미지로 만들기 (PHAsset, UIImage, PHAsset to UIImage)
12345678910func getAssetThumbnail(asset: PHAsset) -> UIImage { let manager = PHImageManager.defaultManager() let option = PHImageRequestOptions() var thumbnail = UIImage() option.synchronous = true manager.requestImageForAsset(asset, targetSize: CGSize(width: 100.0, height: 100.0), contentMode: .AspectFit, options: option, resultHandler: {(result, info)->Void in thumbnail = result! }) return thu..
IOS - SWIFT
2016. 6. 29. 11:44
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday