Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在UIImagePickerController使用相机以人像模式进行演示。我正在以横向模式拍摄图像。将UIImagePickerController捕获的图像自动旋转 90 度。为什么这样做?如何保留原始捕获的图像?
UIImagePickerController
尝试这个
UIImage* newImage = [UIImage imageWithCGImage:oldImage.CGImage scale:oldImage.scale orientation:UIImageOrientationUp];