当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - UIImagePickerControllerEditedImage not mathcing image from image picker view

问题描述:

I am trying to use the square image displayed on the preview screen of the UIImagePickerController but the image always come out pushed down slightly.

See the following pictures.

I have imgPicker.allowsEditing = YES, and here is the code once the image is selected.

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info

{

UIImage *imageEdited = [info objectForKey:UIImagePickerControllerEditedImage];

self.imgView.image = imageEdited;

[picker dismissViewControllerAnimated:YES completion:nil];

}

The imgView has dimension of 320x320.

Any suggestions?

网友答案:

I also have a same problem.. i over come through, hidden the navigation bar.. can you try this??

[navi setNavigationBarHidden:YES];

分享给朋友:
您可能感兴趣的文章:
随机阅读: