1

我在我的项目中使用 ELCImagePicker。使用 ELCImagePicker 选择图像后,我将其显示在 ImageView 上。纵向图像工作正常,但横向图像在我的 UIImageview 中旋转。为什么会这样?请指教。提前致谢。

-(void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info
{



 [self dismissViewControllerAnimated:YES completion:nil];
  NSMutableArray *images = [NSMutableArray arrayWithCapacity:[info count]];
 for(NSDictionary *dict in info) {

    UIImage *image = [dict objectForKey:UIImagePickerControllerOriginalImage];
     [images addObject:image];
     UIImageView *imageview = [[UIImageView alloc] initWithImage:image];
 [imageview setContentMode:UIViewContentModeScaleAspectFit];
}

   }
4

0 回答 0