UIImagePickerController
을 통해 비디오를 레코딩하고 iPhone 6s/6s Plus에 16 : 9로 표시됩니다 (자르기로 시뮬레이션 됨).) 녹화 할 때 비디오가 반환되고 배치되면 비디오의 왼쪽 및 오른쪽 뷰 파인더 부분이 4 : 3으로 표시됩니다.UIImagePickerController를 16 : 9 (Xcode) (Swift) 대신 4 : 3으로 호출
UIImagePickerController
카메라 모드는 실제 4 : 3 모드로 표시되고 기본 인조 16 : 9 모드로 표시되지 않습니다.
나는 현재와 같은 그래서를 호출 오전 :
// IB: Record Button Control
@IBAction func recordVideo(_ sender: UIButton) {
if (UIImagePickerController.isSourceTypeAvailable(.camera)) {
self.selectedButton = sender
self.imagePicker.sourceType = .camera
self.imagePicker.mediaTypes = [kUTTypeMovie as String]
self.imagePicker.allowsEditing = false
self.imagePicker.videoMaximumDuration = 30.0
self.imagePicker.delegate = self
self.present(self.imagePicker, animated: true, completion: {})
} else {
CreateAlert(controller: self, title: "No Camera", message: "Camera is not accessible")
}
}