Как отключить захват видео в UIImagePickerController

Я работаю над приложением, которое позволяет снимать изображения, но не снимать видео, но я не могу понять, как убрать переключатель фото / видео с UIImagePickerView. Это код, с которым я работаю, взят из документации Apple:

UIImagePickerController *cameraUI = [[UIImagePickerController alloc] init];
cameraUI.sourceType = UIImagePickerControllerSourceTypeCamera;

// Displays a control that allows the user to choose picture or
// movie capture, if both are available:
cameraUI.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType: UIImagePickerControllerSourceTypeCamera];

// Hides the controls for moving & scaling pictures, or for
// trimming movies. To instead show the controls, use YES.
cameraUI.allowsEditing = NO;

cameraUI.delegate = self;

[self presentModalViewController:cameraUI animated:YES];

Я хотел бы сохранить все элементы управления камерой, ЗА ИСКЛЮЧЕНИЕМ переключателя фото / видео. Спасибо!

17
задан dnorcott 6 July 2011 в 17:46
поделиться