uiimagepickercontroller

how to determine slo mo video in UIImagePickerController ios

六月ゝ 毕业季﹏ 提交于 2019-12-23 10:56:33
问题 I have one scenario with UIImagePickerController is how do I check that user is selected slo-mo video or normal video in iOS. I have try to determine from videos FPS and BPS but I'm not able to achieve my result. Please help to find that user has selected normal video or slo-mo video from camera roll. Thanks in advance 来源: https://stackoverflow.com/questions/41934251/how-to-determine-slo-mo-video-in-uiimagepickercontroller-ios

UIImagePickerControllerDelegate get date from picked image in iOS 11

天大地大妈咪最大 提交于 2019-12-23 09:03:52
问题 Previous solutions are deprecated — please don't downvote or mark as duplicate UIImagePickerControllerReferenceURL was deprecated in iOS 11 (even though it's still returned in the info dictionary) and was supposed to be replaced with UIImagePickerControllerPHAsset , but I've yet to get an info dictionary back which contains that key. Since the one is deprecated and the other is missing, is there a known solution for extracting the "date taken" from the picked image? For reference, this is an

cameraOverlayView problem on iOS 4.3

江枫思渺然 提交于 2019-12-23 08:07:31
问题 I'm using an picker Controller with a cameraOverlayView to display an image of a product in the camera view. The product image is resized before applying on the overlay. It works fine on iOS 4.2 but on iOS 4.3 the product image is displayed full size. pickerController.sourceType = UIImagePickerControllerSourceTypeCamera; UIImageView *imgView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:produitAffiche.img_realite]] autorelease]; // Resize if(imgView.frame.size.height == 480) { /

Allow UIImagePickerController to edit video but not images

拜拜、爱过 提交于 2019-12-23 07:47:31
问题 Uploading an image or video in Whatsapp , seems to use a UIImagePicker . It's possible to edit video in that view, but images can't be edited. It seems that in the SDK, the allowsEditing property determines whether editing is allowed for both images and video. How can I get the behavior like Whatsapp, where video can be edited but images cannot? 回答1: I was able to achieve this functionality by listening for notifications from the picker. Sign-up in ViewDidLoad [[NSNotificationCenter

Swift Unbalanced calls to begin/end appearance transitions for

≯℡__Kan透↙ 提交于 2019-12-23 07:45:56
问题 This has been stumping me for a while now. I have a UISplitViewController inside a UITabBarController . The master view is a TableView. When I click on a cell, I bring up a very basic view controller with just a UIButton centered. Here is the code for the view controller: class TestViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { @IBOutlet weak var button: UIButton! override func viewDidLoad() { super.viewDidLoad() } override func

UIImagePickerControllerEditedImage edited image offset for iOS 11

家住魔仙堡 提交于 2019-12-23 07:26:56
问题 I'm using a UIImagePickerController with allowsEditing enabled to share images in an App, but found that cropped image is offset for devices running iOS 11 only. My UIImagePickerControllerDelegate implementation is quite simple, just standard actions: func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { let image = info[UIImagePickerControllerEditedImage] as! UIImage imageView.image = image picker.dismiss(animated: true,

UIImagePickerController with allowsEditing doesn't allow panning to crop

拈花ヽ惹草 提交于 2019-12-23 06:48:45
问题 I saw this question here: UIImagePicker allowsEditing stuck in center It seems someone had this problem before, but there's no clear resolution. Reproduction steps: Set allowsEditing = YES Take a picture Crop window comes up, but everytime I pan the image, it just snaps back to the center. I'm on iOS 7.0.3. Here's my code: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker.modalPresentationStyle =

UIImagePickerController not showing (taking more time to load) camera preview in ios7

做~自己de王妃 提交于 2019-12-23 05:33:15
问题 I am using GCD in my app to fetch lot of images and data in the background queue and when I present uiimagepickercontroller it takes more time to show the camera preview. After googling around, I found that many have faced this issue with iOS 7 and here is one more post that made some sense to me. (iOS 7 UIImagePickerController Camera No Image). The solution was to stop the background threads and then present the picker controller. But I am really stumped and don't know how to stop or pause

Uploading an image to Parse failing

爷,独闯天下 提交于 2019-12-23 04:47:32
问题 I am unable to save a image captured and send it up to my mongodb using Parse. I am not sure what my error is related to. I definitely have the image capturing part correct using my imagePickerController. Here's my code: func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { if let image = info[UIImagePickerControllerOriginalImage] as? UIImage { print("Did finish picking media. Image \(image)") let imageData =

Load UIImagePickerController faster?

余生长醉 提交于 2019-12-23 04:22:17
问题 I need to load UIImagePickerController faster. My app will call UIImagePickerController from possibly multiple controllers and within each controller there are two buttons, one for Photo Library, another for Camera. This is my sample app. Some solutions I tried are recommended by Apple in ' Concurrency Programming Guide '. The simplest is to alloc & init an instance when user presses a button. This can take up to 2 seconds before the camera shows up. Solution attempt:- (1) I made a @property