uiimagepickercontroller

UIImagePickerController stuck at compressing Video

我只是一个虾纸丫 提交于 2019-12-01 15:52:51
问题 I've got the image picker working in a popover on the ipad, but when running in the simulator when I select a video in the picker it says its compressing and then gets stuck. Nothing happens, the delegate function never gets called. 回答1: I found one solution - it works on the physical device. I dont know why it crashes on the simulator, but if I run the app on my Ipad it works fine. 回答2: It's a late answer but you can fix it by following this procedure: go to the simulator hardware menu and

iphone : how to stop shutter animation?

落爺英雄遲暮 提交于 2019-12-01 14:57:41
I am having 2 issues. 1) I want to know how can I stop animation of shutter when camera is loaded ? I am using UIImagePickerController. I have referred many answer from stack overflow but did not get succeed. 2) I have a custom button in camera using cameraOverlayView and want to open the photo library on click. I have code like : - (void) showLibrabryPicker { pickerLibrary = [[UIImagePickerController alloc] init]; pickerLibrary.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; pickerLibrary.delegate = self; [self presentModalViewController:pickerLibrary animated:YES]; [pickerLibrary

GeoTag Images from image picker swift 3

筅森魡賤 提交于 2019-12-01 14:37:42
I want to get geotag location from image which is selected from image picker. I am using this code if picker.sourceType == UIImagePickerControllerSourceType.PhotoLibrary { if let currentLat = pickedLat as CLLocationDegrees? { self.latitude = pickedLat! self.longitude = pickedLong! } else { var library = ALAssetsLibrary() library.enumerateGroupsWithTypes(ALAssetsGroupAll, usingBlock: { (group, stop) -> Void in if (group != nil) { println("Group is not nil") println(group.valueForProperty(ALAssetsGroupPropertyName)) group.enumerateAssetsUsingBlock { (asset, index, stop) in if asset != nil { if

VIDEO_TOO_LONG_TITLE alert shown by UIImagePickerController

微笑、不失礼 提交于 2019-12-01 14:31:11
问题 I use a UIImagePickerController to take movies. The length of a movie is limited by setting the videoMaximumDuration property of the controller. When one tries to take a longer movie, an alert is shown, as expected. However an unexpected additional alert entitled VIDEO_TOO_LONG_TITLE is shown directly above the controls (see image below). Apparently this is an iOS bug (only partly localized, no clip has been selected). Is it possible to hide this unnecessary and inappropriate alert? 回答1:

How to take a screenshot of a pickerViewController and UIView?

对着背影说爱祢 提交于 2019-12-01 14:30:33
I have a TableView who presents a PickerViewController on a ViewController . The ViewController show some Images and a button than triggering an action. I want that this action takes a screenshot as the screenshot that is provided by Apple. Here is my code: @IBAction func share(){ UIGraphicsBeginImageContext(view.frame.size) UIGraphicsBeginImageContext(thePicker.view.frame.size) view.layer.render(in: UIGraphicsGetCurrentContext()!) thePicker.view.layer.render(in: UIGraphicsGetCurrentContext()!) let image = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() let activity =

Camera has incorrect screen placement when open fullscreen modal from popover

回眸只為那壹抹淺笑 提交于 2019-12-01 13:52:03
I have an iPad app that has a popover (UIPopoverController) with a number of views pushed, one of which has a button that launches the camera... see image... The camera is instigated with this method... - (IBAction)selectPlanImageFromCamera:(id)sender { [self.blockTextField resignFirstResponder]; [self.levelTextField resignFirstResponder]; [self.zoneNamePrefixTextField resignFirstResponder]; [self.nameTextField resignFirstResponder]; [self.notesTextView resignFirstResponder]; imagePicker = [[UIImagePickerController alloc] init]; imagePicker.allowsEditing = NO; imagePicker.delegate = self;

How to take a screenshot of a pickerViewController and UIView?

 ̄綄美尐妖づ 提交于 2019-12-01 13:01:12
问题 I have a TableView who presents a PickerViewController on a ViewController . The ViewController show some Images and a button than triggering an action. I want that this action takes a screenshot as the screenshot that is provided by Apple. Here is my code: @IBAction func share(){ UIGraphicsBeginImageContext(view.frame.size) UIGraphicsBeginImageContext(thePicker.view.frame.size) view.layer.render(in: UIGraphicsGetCurrentContext()!) thePicker.view.layer.render(in: UIGraphicsGetCurrentContext()

iOS Custom UIImagePickerController Camera Crop to circle - in preview view

孤街醉人 提交于 2019-12-01 12:59:38
问题 I'm using this code to make a custom camera crop: UIImagePickerController editing view circle overlay This works perfectly in camera roll but not taking photos If I change [navigationController.viewControllers count] == 3 --> [navigationController.viewControllers count] == 1 works for camera too, but not in next view (preview view where you accept to use the photo) Someone help me?? -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{ if (buttonIndex ==

iphone : how to stop shutter animation?

旧街凉风 提交于 2019-12-01 12:42:10
问题 I am having 2 issues. 1) I want to know how can I stop animation of shutter when camera is loaded ? I am using UIImagePickerController. I have referred many answer from stack overflow but did not get succeed. 2) I have a custom button in camera using cameraOverlayView and want to open the photo library on click. I have code like : - (void) showLibrabryPicker { pickerLibrary = [[UIImagePickerController alloc] init]; pickerLibrary.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

Camera has incorrect screen placement when open fullscreen modal from popover

三世轮回 提交于 2019-12-01 12:11:50
问题 I have an iPad app that has a popover (UIPopoverController) with a number of views pushed, one of which has a button that launches the camera... see image... The camera is instigated with this method... - (IBAction)selectPlanImageFromCamera:(id)sender { [self.blockTextField resignFirstResponder]; [self.levelTextField resignFirstResponder]; [self.zoneNamePrefixTextField resignFirstResponder]; [self.nameTextField resignFirstResponder]; [self.notesTextView resignFirstResponder]; imagePicker = [