Hi I would like to record a video in iPhone through Objective-C. Can someone provide me the sample code to write my own code. I have no idea how to do it. And i need it in h
if ([UIImagePickerController
isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.modalTransitionStyle = UIModalPresentationFullScreen;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.showsCameraControls = YES;
picker.delegate = self;
picker.mediaTypes = @[(id)kUTTypeMovie];
[self presentViewController:picker animated:YES // self is a viewController
completion:^ {
}];
}