uiimagepickercontroller

Issue with ImagePickerController cropping

本小妞迷上赌 提交于 2020-01-06 05:41:21
问题 I'd like user to be able to crop images they've selected from photo library via ImagePickerController . Ive allowed editing. self.imgPicker.allowsEditing = true And retrieve edited version of image. let img = info[UIImagePickerControllerEditedImage] as? UIImage The top of the image is not fully cropped. This is Apples code. Do I need to implement something custom? Crop (should only show image, all white is cropped out): Result: 回答1: It's a default behavior when you click picture from the

calling unwind segue from camera method fails

巧了我就是萌 提交于 2020-01-05 12:32:49
问题 My unwind segue code is working fine. I use storyboard to wire things up. And when I run the app, all is well. But in addition to clicking a button, I want to also do the unwinding from code. Basically I am presenting a modal that contains two buttons: Camera , Gallery . User clicks on one of the buttons to go to either get an image from the camera or from the gallery. So once the image is obtained, I no longer need the modal view. Hence, as the last step in the method (void

Uploading Multiple Image using UIImagePickerController in IPhone Application

萝らか妹 提交于 2020-01-05 10:35:25
问题 i am working with an iOS application in which i want to select multiple images using UIImagepickercontroller and then upload it on DropBox. i found in some places that by using UIImagepickercontroller we only select single image at once a time . i am using the below code for selecting multiple images using UIImagepickercontroller with the help of UIPopovercontroller : UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker

Uploading Multiple Image using UIImagePickerController in IPhone Application

不羁的心 提交于 2020-01-05 10:34:55
问题 i am working with an iOS application in which i want to select multiple images using UIImagepickercontroller and then upload it on DropBox. i found in some places that by using UIImagepickercontroller we only select single image at once a time . i am using the below code for selecting multiple images using UIImagepickercontroller with the help of UIPopovercontroller : UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker

CameraOverlayView buttons

北城以北 提交于 2020-01-05 08:21:35
问题 I'm adding a cameraOverlay to my UIImagePickerController, it shows and all but it doesn't register touches. I init a button in the viewDidLoad and a one via IB. Is there some rule that prohibits me from adding a UIButton to a cameraOverlayView and register touches? Thanks 回答1: I had a similar problem, and it turned out that my overlay UIView's frame was not large enough. The clipsToBounds property for a UIView is by default set to NO, which means its subviews are still visible even if they

Do not compress video when I select a video

元气小坏坏 提交于 2020-01-04 06:46:10
问题 I am making Video Upload App in IOS. I got a problem on UIImagePickerController. That is, When I whenever select a Movie, It compressed automatically. I had tried every VideoQuality Options. (High, Medium, Low) Do I use other Controller or my own Controller? A short video(5 minutes) compression spends very long time(several minutes) on my iPhone(4S). I think that my app supports over 10 minute video at least. My Code are like this. - (void)showImagePicker:(UIImagePickerControllerSourceType

Do not compress video when I select a video

会有一股神秘感。 提交于 2020-01-04 06:44:26
问题 I am making Video Upload App in IOS. I got a problem on UIImagePickerController. That is, When I whenever select a Movie, It compressed automatically. I had tried every VideoQuality Options. (High, Medium, Low) Do I use other Controller or my own Controller? A short video(5 minutes) compression spends very long time(several minutes) on my iPhone(4S). I think that my app supports over 10 minute video at least. My Code are like this. - (void)showImagePicker:(UIImagePickerControllerSourceType

iOS 13 adds “trim.” prefix to files selected from UIImagePickController

被刻印的时光 ゝ 提交于 2020-01-04 06:12:40
问题 iOS 13 adds a trim. prefix when selecting a file from Photos: file:///private/var/mobile/Containers/Data/PluginKitPlugin/FPDLKFHEQ-4T56-3456-HTE2-39EK2KDJUR/tmp/trim.DFLSPD0F-32RE-UYI8-DFHA-DPFLEOW098UH.MOV Before iOS-13 was like this: file:///private/var/mobile/Containers/Data/PluginKitPlugin/FPDLKFHEQ-4T56-3456-HTE2-39EK2KDJUR/tmp/DFLSPD0F-32RE-UYI8-DFHA-DPFLEOW098UH.MOV This is an issue when passing the file URL to alamofire to upload the file to a backend server. It causes an "unknown

iOS 13 adds “trim.” prefix to files selected from UIImagePickController

情到浓时终转凉″ 提交于 2020-01-04 06:11:15
问题 iOS 13 adds a trim. prefix when selecting a file from Photos: file:///private/var/mobile/Containers/Data/PluginKitPlugin/FPDLKFHEQ-4T56-3456-HTE2-39EK2KDJUR/tmp/trim.DFLSPD0F-32RE-UYI8-DFHA-DPFLEOW098UH.MOV Before iOS-13 was like this: file:///private/var/mobile/Containers/Data/PluginKitPlugin/FPDLKFHEQ-4T56-3456-HTE2-39EK2KDJUR/tmp/DFLSPD0F-32RE-UYI8-DFHA-DPFLEOW098UH.MOV This is an issue when passing the file URL to alamofire to upload the file to a backend server. It causes an "unknown