ELCImagepicker中的图像方向

时间:2013-11-13 09:03:07

标签: ios iphone objective-c uiimageview elcimagepickercontroller

我在我的项目中使用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];
}

   }

0 个答案:

没有答案