Resim yakalama değil, video yakalama sağlayan bir uygulama üzerinde çalışıyorum, ancak bir UIImagePickerView'dan fotoğraf/video geçişini nasıl kaldıracağımı anlayamıyorum. Ben fotoğraf/video anahtarı HARİÇ tüm kamera kontrollerini tutmak istiyorumVideo çekimi nasıl devre dışı bırakılır UIImagePickerController
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];
: Bu Apple'ın belgelerine alınan Birlikte çalıştığım koddur. Teşekkürler!
Ah, tamam. Dokümanları okudum ve mediaType'ı çalışmış gibi göründüğümü söylediğim gibi: cameraUI.mediaTypes = [[[NSArray ayırma] initWithObjects: (NSString *) kUTTypeImage, nil] autorelease]; – dnorcott
#import ' –
DevC