我需要以方盒格式捕获预定义大小的视频,然后将其显示为框大小,所以请您帮我解决这个问题,我该怎么做
谢谢
您可以在定义的框架中拍摄照片
结帐以下代码段
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];
享受编程!!