问题描述:

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];

相关阅读:
Top