I current have an app that uses ALAsssetsLibrary to fetch the photos. I have placed the photo to an image view and I am able to upload to the server. When I tested on the real device after taking some photos, I found out the photos that supposed to be taken in Portrait become a landscape.
因此,我呼吁发挥不同的作用,使农业研究小组能够这样做:
UIImage *image = [UIImage imageWithCGImage:[representation fullResolutionImage] scale:1.0 orientation:(UIImageOrientation)[representation orientation]];
我第一次尝试了:
UIImage *image = [UIImage imageWithCGImage:[representation fullResolutionImage]]
我认为,光照照照照照照照照照照照照照照照照照照照照照照照照照照照照照照,可以给我正确方向。 但是,这并没有给我正确的解决办法。
我是否误解了产生正确照片取向所必需的任何东西?