我已经定制了UIImagePickerController,用于以我自己的风格捕获视频帧。我创建了一个UIImagePickerController,如下所示。
self.iPicker = [[[UIImagePickerController alloc] init] autorelease];
self.iPicker.delegate = self;
self.iPicker.sourceType = sourceType;
self.iPicker.showsCameraControls = NO;
self.iPicker.allowsEditing = YES;
self.iPicker.wantsFullScreenLayout = YES;
self.iPicker.navigationBarHidden = YES;
self.iPicker.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:
UIImagePickerControllerSourceTypeCamera];
self.iPicker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModeVideo;
self.iPicker.videoQuality = UIImagePickerControllerQualityTypeHigh;
但是当我在点击记录按钮之前双击捕获屏幕时,它会将捕获帧大小更改为视网膜大小。如果我再次这样做,它将返回原始大小。 我不希望在我的选择器控制器中出现这种行为。我想在用户从设置菜单中选择视频质量时更改选择器大小。
众所周知,UIImagePickerController对象有6种质量类型和视频捕获大小。他们就像以下一样。
typedef NS_ENUM(NSInteger, UIImagePickerControllerQualityType) {
UIImagePickerControllerQualityTypeHigh = 0, // highest quality
UIImagePickerControllerQualityTypeMedium = 1, // medium quality, suitable for transmission via Wi-Fi
UIImagePickerControllerQualityTypeLow = 2, // lowest quality, suitable for tranmission via cellular network
UIImagePickerControllerQualityType640x480 = 3, // VGA quality
UIImagePickerControllerQualityTypeIFrame1280x720 = 4,
UIImagePickerControllerQualityTypeIFrame960x540 = 5
};
请帮我解决自动更改行为的问题。