最好的方法是使用ALAsset 縮略圖。如果您對圖像清晰度有所擔憂,請使用ALAsset fullResolution圖像
以下是在開始開發照片應用程序之前必須閱讀的一些細節。
ALAssetsLibrary的實例提供對Photos應用程序控制下的視頻和照片的訪問。
An ALAsset object表示由Photo應用程序管理的照片或視頻。
有不同ALAsset 訪問交涉
1.thumbnail
返回該資產的縮略圖表示。
- (CGImageRef)thumbnail
2.aspectRatioThumbnail
返回資源的縱橫比的縮略圖。
- (CGImageRef)aspectRatioThumbnail
3.defaultRepresentation
返回默認表示的資產的表示對象。
- (ALAssetRepresentation *)defaultRepresentation
4.representationForUTI:
返回給定表示的UTI資產表現對象。
- (ALAssetRepresentation *)representationForUTI:(NSString *)representationUTI
一種ALAssetRepresentation對象封裝的給定ALAsset對象的表示之一。
1。CGImageWithOptions:
返回表示的完整分辨率CGImage。
- (CGImageRef)CGImageWithOptions:(NSDictionary *)options
2.fullResolutionImage
返回所述資產的CGImage表示。
- (CGImageRef)fullResolutionImage
3.fullScreenImage
返回適合於顯示全屏的表示的CGImage。
- (CGImageRef)fullScreenImage
Sample Code
當你downvote,請說明原因也是如此。這將有助於把事情放在角度,並確保問題不會重演。 – Prashant 2013-03-11 14:44:28