iOS 4.3改变了UIImagePickerController的摄像头覆盖视图的转换

在iOS 4.3上testing我的应用程序后,我注意到我的UIImagePickerController的摄像头覆盖层有一个额外的转换,极大地拉伸了内容。 预iOS 4.3的一切都显示正确。

这是我做的

imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; cameraOverlay = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)]; cameraOverlay.backgroundColor = [UIColor clearColor]; cameraOverlay.userInteractionEnabled = NO; //add subviews to camera Overlay imagePicker.cameraOverlayView = pauseButton; 

任何想法,我必须做的摆脱增加的转型?

OKfind了答案。 ios 4.3要求camerOverlay和屏幕一样大。 所以我的200×200相机覆盖被放大。

如果我改变这一行:

 cameraOverlay = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)]; 

 cameraOverlay = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; 

有用 :)。