2012-07-22 88 views
1

我在iPhone應用程序中顯示來自相機膠捲的所有圖像。我構建了一個ALAsset *數組,其中包含應用程序啓動時相機膠捲中所有圖像的列表。我通過在圖像視圖加載這些圖像形成細胞:在iOS GridView中加載相機膠捲圖像非常慢

// Get the full resolution image for asset 
ALAssetRepresentation *assetRep = [asset defaultRepresentation]; 
UIImage *image = [UIImage imageWithCGImage:[assetRep fullResolutionImage]]; 
[cell.imageCropper setImage:image]; 

當我做到這在

- (AQGridViewCell *) gridView: (AQGridView *) aGridView cellForItemAtIndex: (NSUInteger) index 

問題是要求一個新小區,它的時候有很多的圖像和用戶滯後快速瀏覽圖像。處理這個問題的正確方法是什麼?

回答

1

使用縮略圖

+0

縮略圖是爲我工作的應用程序太少。我根據@HeikoG的建議,最終使用了帶有後臺加載的fullScreenImage。 – 2012-09-28 12:10:57

相關問題