UIButton *videoBtn = [UIButton buttonWithType:UIButtonTypeCustom];
videoBtn.frame = CGRectMake(20, 20, SCREENWIDTH/3, 40);
[videoBtn setImage:[UIImage imageNamed:@"录制视频.png"] forState:UIControlStateNormal];
[videoBtn addTarget:self action:@selector(getVideoAction:) forControlEvents:UIControlEventTouchUpInside];
[biggerKuang addSubview:videoBtn];
//添加视频模块
- (void)getVideoAction:(UIButton *)sender {
[SVProgressHUD showWithMaskType:SVProgressHUDMaskTypeBlack];
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])
{
UIImagePickerController* pickerView = [[UIImagePickerController alloc] init];
//UIImagePickerControllerSourceTypePhotoLibrary从手机视频调取,UIImagePickerControllerSourceTypeCamera调用摄像机
pickerView.sourceType = UIImagePickerControllerSourceTypeCamera;
//UIImagePickerControllerSourceTypePhotoLibrary 从手机视频调取,UIImagePickerControll