我想知道是否有人在他们的iOS应用程序中使用过以下代码。
https://github.com/elc/ELCImagePickerController
基本上,它是使用iOS 4.0提供的AssetsLibrary的UIImagePicker的克隆。
在很大程度上,我喜欢它,但我遇到了两个问题。
1)在设备上,当库中有超过200张图像时,需要花费相当长的时间。虽然它一旦加载就能正常工作,但它花费的时间比我理想中的要长得多。
2)当选择一些图像时,它会以不同的方向显示在屏幕上。(看起来这主要发生在我从iPhone上拍摄的照片上),我甚至看到它把图像颠倒了。
我只是好奇是否有其他人使用过它,如果有,他们是否能够克服这些问题。
发布于 2012-01-17 22:45:35
关于方向,你可以使用"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;发布于 2011-06-15 22:11:00
1)后台加载前100张图片,更新GUI,加载其他图片。2) UIImage有imageOrientation属性
https://stackoverflow.com/questions/4973924
复制相似问题