iOS7 で以下を実行すると、アプリケーションがクラッシュします。そのiOS6で完全に正常に動作していました
UIImagePickerController *ImagePicker;
@try {
ImagePicker = [[[UIImagePickerController alloc]init]autorelease];
ImagePicker.sourceType= UIImagePickerControllerSourceTypeCamera;
ImagePicker.showsCameraControls = NO;
ImagePicker.toolbarHidden = YES;
ImagePicker.navigationBarHidden= YES;
// ImagePicker.wantsFullScreenLayout = YES;
ImagePicker.cameraViewTransform = CGAffineTransformScale(ImagePicker.cameraViewTransform, CAMERA_TRANSFORM, CAMERA_TRANSFORM);
}
@catch (NSException *exception) {
[ImagePicker release];
ImagePicker = nil;
}
@finally {
if(ImagePicker)
{
[cameralayer addSubview:[ImagePicker view]];
[cameralayer release];
}
}