0
votes

I thought the iphone width/height size is 320 * 480. But the photo taken from UIImagePickerController is about 320 * 430.

Not sure whether I missed anything.


picker = [[UIImagePickerController alloc] init];
picker.showsCameraControls = NO;
picker.allowsEditing = YES;

[window addSubview: picker.view];

Any advices? Thanks.

1
Are you using a navigation bar?William Jockusch
no, I am not using navigation bar.BlueDolphin

1 Answers

0
votes

It appears the picture size rate is 640 * 480. Assume the shorter line is width, I used :

h = 320.0f * heightFromImage / heightFromWidth;

heightFromImage is 640 and heightFromWidth = 480.

The saved image looks correct.