uiimagepickercontroller

UIImagePickerController crashes on rapid scrolling, slower than photos app

瘦欲@ 提交于 2019-12-22 07:00:03
问题 Most of the time, my image picker works perfectly (iOS 4.2.1). However, if I scroll very rapidly up and down about 4-6 times through my camera roll of about 300 photos, I get a crash. This never happens with the "photos" app on the same iPhone 3Gs. Also, I'm noticing that the stock "photos" app scrolls much more smoothly than my image picker. Has anyone else noticed this behavior? I'd be interested if others could attempt this in their own apps and see if they crash. I don't think it's

How to present a ViewController with a UIImagePickerController

无人久伴 提交于 2019-12-22 06:49:28
问题 I'm attempting to present an ImagePicker , and there after the user has selected an image, present an image editing ViewController where the user can manipulate the image and then send the edited image back to the original ViewController . Question: Is there a standard or best practice approach starting with an initial ViewControlle, then present an ImagePicker there after another ViewController to do the imaging editing, and then display it all back in the initial ViewController, all while

UIImagePickerController open in camera roll

亡梦爱人 提交于 2019-12-22 05:22:11
问题 Is it possible to open camera roll directly with UIImagePickerController but still have the back button to your album list? UIImagePickerControllerSourceTypeSavedPhotosAlbum will open only the camera roll without the option to slide back to albums. 回答1: Unfortunately, the answer is -- it's not possible. At least not through any standard interface. It might be possible to do some view hierarchy mining or method swizzling to make it happen, but then you may run afoul of the App Store

UIImagePickerController not asking for permissions on iOS 9

北城以北 提交于 2019-12-22 05:20:56
问题 I have an iOS app where I present an image picker the self.picker = [[UIImagePickerController alloc] init]; self.picker.delegate = self; self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; self.popover = [[UIPopoverController alloc] initWithContentViewController:self.picker]; [self.popover presentPopoverFromRect:CGRectMake(100, 100, 1, 1) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; The app however doesn't ask for permissions at all,

How to respond to UIImagePickerController Generated UIAlertView

蹲街弑〆低调 提交于 2019-12-22 00:12:12
问题 I am using UIImagePickerController to capture video from my app and i have set video maximum duration to 30 seconds. When that 30 seconds limit is reached. I get an alert with a message "maximum video recording limit reached" produced by UIImagePickerController and it stops capturing video. What I want is that I want to respond to that alert that is generated automatically when 30 seconds limit is reached. I want to perform some action when "OK" button of that alert is pressed. I have

UIImagePickerController didFinishPickingMediaWithInfo not being called when cameraOverlyView property is assigned

陌路散爱 提交于 2019-12-21 22:49:39
问题 I set up a UIImagePickerController modal view to record a video, and once the user chooses "Use Video" it dismisses the view controller fine and does exactly what I'd like. However, as soon as I add a cameraOverlayView, which is just a UIView with nothing special going on, didFinishPickingMediaWithInfo is never called. Even if I put an NSLog on the first line of that function, I don't see any output. More oddly still, UIImagePickerControllerDidCancel still gets called when the user presses

Image Picker Controller delegate in separate class doesn't work

妖精的绣舞 提交于 2019-12-21 21:37:48
问题 I'm new to Xcode and Swift. I'm currently playing around with Start Developing iOS Apps (Swift) tutorial by Apple. Everything works fine so far, except one thing. The tutorial handles Image Picker delegate inside the main ViewController class, making it conform to UIImagePickerControllerDelegate and UINavigationControllerDelegate protocols. I wanted to try something else and move the delegate to separate class. Here's what I did: import UIKit import Foundation class MealPhotoDelegate:

There is a black bottom space below the camera

為{幸葍}努か 提交于 2019-12-21 17:22:49
问题 I am presenting an UIImagePickerController from a UITabBarController . let imagePicker = UIImagePickerController() imagePicker.delegate = self imagePicker.sourceType = .Camera imagePicker.allowsEditing = false imagePicker.showsCameraControls = false presentViewController(imagePicker, animated: true, completion: nil) I have explicitly set showsCameraControls to false to put my custom overlay view on top of camera.But why there is a black space on the bottom?any helps? 回答1: The camera aspect

How to get the edited image from UIImagePickerController in Swift?

陌路散爱 提交于 2019-12-21 12:42:12
问题 I have seen and read the documents of Apple where they have clearly mentioned about the key UIImagePickerControllerEditedImage. But when I am running my following code, I am not getting that key in the Dictionary. What is the reason behind this? My Code: func imagePickerController(picker: UIImagePickerController!, didFinishPickingMediaWithInfo info:NSDictionary!) { println(info) //var tempImage:UIImage = info[UIImagePickerControllerOriginalImage] as UIImage var tempImage:UIImage? = info

How to get the edited image from UIImagePickerController in Swift?

被刻印的时光 ゝ 提交于 2019-12-21 12:41:00
问题 I have seen and read the documents of Apple where they have clearly mentioned about the key UIImagePickerControllerEditedImage. But when I am running my following code, I am not getting that key in the Dictionary. What is the reason behind this? My Code: func imagePickerController(picker: UIImagePickerController!, didFinishPickingMediaWithInfo info:NSDictionary!) { println(info) //var tempImage:UIImage = info[UIImagePickerControllerOriginalImage] as UIImage var tempImage:UIImage? = info