开发者

AssetsLibrary with UIImagePicker - ELCImagePickerController

I was wondering if anyone else has used the following开发者_如何学运维 in their iOS applications.

https://github.com/elc/ELCImagePickerController

Basically it is a clone of the UIImagePicker using the using the AssetsLibrary that is available with iOS 4.0.

For the most part I like it, but I ran into two issues.

1) When on a device, it take quite a while when there are more that 200 images in a Library. While it works when once it loads, it takes quite a bit longer than I would ideally like.

2) When selecting some images, it brings it over with a different orientation that is shown on the screen. (looks like that happens most with pictures I took from the iPhone) I even seen it turn an image upside down.

I am just curious if anyone else has used this, and if so, were they able to overcome these issues.


Regarding orientation you can use the "ALAssetPropertyOrientation" and get the image orientation and than get any orientation that you may need.

Below are the orientation that iOS support

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;


1) Load first 100 images, update GUI and load other in background. 2) UIImage have property imageOrientation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜