我隱藏了我的相機控件,但是留下了一個很大的黑色空間。爲了解決這個問題,我正在尋找縮放我的相機,使其充滿整個屏幕。我不知道爲什麼我無法做到這一點。這是我的代碼。乾杯!如何縮放我的imagePickerController相機以填充整個屏幕?
imagePicker.sourceType = UIImagePickerControllerSourceType.Camera
imagePicker.delegate = self
imagePicker.allowsEditing = false
imagePicker.showsCameraControls = false
imagePicker.cameraOverlayView = overlayView
self.presentViewController(imagePicker, animated: false, completion: nil)