2011-02-11 23 views
1

我想知道是否有人在他們的iOS應用程序中使用了以下內容。資產庫與UIImagePicker - ELCImagePickerController

https://github.com/elc/ELCImagePickerController

基本上它是使用使用AssetsLibrary可用與iOS 4.0 UIImagePicker的克隆。

大部分我喜歡它,但我遇到了兩個問題。

1)當在一個設備上,當一個庫中有多於200個圖像時,需要很長時間。雖然它一旦加載就可以工作,但它比我想象的要長很多。

2)當選擇一些圖像時,它會以不同的方向顯示在屏幕上。 (看起來像我從iPhone拍攝的照片中發生的情況最多),我甚至看到它將圖像顛倒過來。

我只是好奇,如果其他人已經使用過,如果是的話,他們是否能夠克服這些問題。

+0

嗨,如u都用它,然後纔可能從同步專輯是的,當我使用它使用ELCimagepickrcontroller – Christina 2011-04-28 11:56:12

回答

0

關於方向,您可以使用「ALAssetPropertyOrientation」並獲取圖像方向,並獲取您可能需要的任何方向。

下面是取向上的iOS支持

typedef enum { 
UIImageOrientationUp,   // default orientation 
UIImageOrientationDown,   // 180 deg rotation 
UIImageOrientationLeft,   // 90 deg CCW 
UIImageOrientationRight,   // 90 deg CW 
UIImageOrientationUpMirrored, // as above but image mirrored along other axis. horizontal flip 
UIImageOrientationDownMirrored, // horizontal flip 
UIImageOrientationLeftMirrored, // vertical flip 
UIImageOrientationRightMirrored, // vertical flip 
} UIImageOrientation; 
0

1)加載前100個圖像,更新GUI並在後臺加載其他圖像。 2)UIImage有屬性imageOrientation