में वीडियो कैप्चर को अक्षम करने के लिए कैसे करें मैं एक ऐप पर काम कर रहा हूं जो छवि कैप्चर करने की अनुमति देता है, लेकिन वीडियो कैप्चर नहीं करता है, लेकिन मैं यह नहीं समझ सकता कि UIImagePickerView से फ़ोटो/वीडियो टॉगल को कैसे हटाया जाए।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];
मैं फोटो/वीडियो स्विच को छोड़कर सभी कैमरा नियंत्रण रखना चाहते हैं: इस कोड के साथ मैं काम कर रहा हूँ, एप्पल के प्रलेखन से लिया है। धन्यवाद!
आह, ठीक है। मैंने दस्तावेज़ों के माध्यम से पढ़ा और जैसे आपने कहा कि मैंने मीडिया टाइप को इस पर सेट किया है जो काम करता है: cameraUI.mediaTypes = [[[NSArray alloc] initWithObjects: (NSString *) kUTTypeImage, nil] autorelease]; – dnorcott
'#import <मोबाइलकोर सेवा/UTCoreTypes.h> ' – DevC