我需要将预定义大小的视频捕获为方框格式,然后将其显示为盒子大小,所以请你帮我解决这个问题,我该怎么做呢?
由于
答案 0 :(得分:1)
您可以在定义的框架中捕捉照片
结帐以下代码段
UIImagePickerController *mediaUI = [[UIImagePickerController alloc] init];
mediaUI.sourceType = UIImagePickerControllerSourceTypeCamera;
mediaUI.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil] ;
mediaUI.delegate = self;
mediaUI.allowsEditing = YES;
mediaUI.view.frame = CGRectMake(5, 5, 310, 280);
[self.view addSubview:mediaUI];
享受编程!!