简体   繁体   English

从ALAssset检索时UIImage方向问题

[英]UIImage orientation issues when retrieved from ALAssset

When i choose photo that taken in portrait mode the ALAsset give me it in landscape mode, and i found a lot of rotate methods and non of them was really rotate the UIImage . 当我选择以人像模式拍摄的照片时,ALAsset在横向模式下给了我,我发现了很多旋转方法,但实际上没有一种方法是旋转UIImage。

this is how i take the UIImage: 这就是我采取的UIImage:

[UIImage imageWithCGImage:[[asset defaultRepresentation] fullResolutionImage]]

can any one did stuck with this problem too? 任何人都可以解决这个问题吗?

如果有人遇到相同的问题,则可以使用以下网址中的方法: http : //www.platinumball.net/blog/2009/03/30/iphone-uiimage-rotation-and-mirroring/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM