uiimagepickercontroller

iPhone - Mirroring back a picture taken from the front camera

情到浓时终转凉″ 提交于 2019-11-30 11:09:07
问题 When using the front camera of the iPhone 4 to take a picture, the taken picture is mirrored compared with what you see on the iPhone screen. How may I restore the "on screen" view of the UIImage (not the UIImageView), and be able to save it like this ? I tried : UIImage* transformedImage = [UIImage imageWithCGImage:pickedImage.CGImage scale:1.0 orientation:UIImageOrientationLeftMirrored]; UIImageWriteToSavedPhotosAlbum (transformedImage, self, @selector(photoSaved:didFinishSavingWithError

Creating our own crop rect in camera overlay

…衆ロ難τιáo~ 提交于 2019-11-30 10:27:31
I want to state my basic requirement which is to change the frame for crop rect in UIImagePickerController for a camera. I just realized that it is not possible to change frame for crop rect. That leaves me with only one option i.e to create my own camera overlay wherein I can set frame for crop rect. I searched a lot but found nothing. I asked previously but didn't get anything. I don't even know is it possible and if yes then how to create it and move the crop box, scale it in accordance to default UIImagePickerController crop rect. You have to Implement your own CropRect. First set the

Change text of UIAlertView when recording a video with UIImagePickerController and reaching the videoMaximumDuration

强颜欢笑 提交于 2019-11-30 09:57:08
问题 I'd want to know how to change to text of the UIAlertView appearing when I record a video with a UIImagePickerController and I reach the videoMaximumDuration. If it is not possible to change the text of that UIAlertView , is it at least possible to display it in another language ? Edit : the default text is "The maximum length for this video has been reached" with title "Video Recording Stopped". Thank you, aimak 回答1: The text of the alert is localized to the current locale settings of the

swift: How to load photos from photo library without using UIImagePickerController?

我的梦境 提交于 2019-11-30 09:47:09
I am using swift to load images from photo library. I know that I can use UIImagePickerController to let user to choose the images from camera roll but I want to access photos without user actions. For example, I want to read a series of photos which are from camera roll and put them in a photo slide to show them one by one. How can I access these photos without UIImagePickerController? You can access photo library using Photos framework(for iOS 8+). Take a look at this example. In AAPLRootListViewController's code if awakeFromNib method you can see how to create PHFetchResult object to

UIImagePickerController cameraViewTransform acts differently in iOS 4

可紊 提交于 2019-11-30 09:45:32
I upgraded both my iPhone and SDK to iOS 4.0.1 and now my App doesn't run the same way it was running in iOS 3.x. My App uses the UIImagePickerController with a custom cameraOverlayView (which I'll suppress in this post). The main point is that I need to see the iphone camera in fullscreen mode. To go straight to the problem, I'll put some code and screenshots to explain what's happening. I created a View-Based Application using the XCode Template projects named "CameraTransform", so I got two classes: CameraTransformAppDelegate and CameraTransformViewController , ok! In the

UIImagePickerController disable iPhone 4S face detection (iOS 5.1)

这一生的挚爱 提交于 2019-11-30 09:27:32
问题 I am currently developing an iPhone app that makes use of a UIImagePickerController with a custom overlay to take photos. Unfortunately I do not have direct access to an iPhone 4S but several testers have reported that the camera picker is drawing a green border around faces exactly like this: http://cdn.iphonehacks.com/wp-content/uploads/2012/03/camera_faces.jpg Due to the nature of this app this is not desirable. A thorough search of the UIImagePickerController docs didn't turn up anything

App Terminated due to Memory Pressure when using camera in iOS 7

北战南征 提交于 2019-11-30 09:10:43
I am facing error App Terminated due to Memory Pressure when I capture some images using UIImagePickerController Camera. I receive memory warnings first and then suddenly app crashes. This issue is in iOS 7 specifically as in iOS 6 it is working fine. Does someone know why is this memory issue occuring in iOS 7 on using camera. Note: I tried to minimize RAM usage because it may also be the reason for this memory pressure. But still getting warning. eckyzero I just posted this answer on a similar post ( iOS 7 UIImagePicker preview black screen ). Here's what I said: About 5 months ago my team

Using cameraOverlayView with UIImagePickerController

别来无恙 提交于 2019-11-30 08:57:46
I know this has been asked a number of time but I can't find an answer. I have an app that uses the UIImagePickerController to take a picture. The problem is that I only want the camera option to be available and I understand that I need to hide the standard controls: cameraUI.showsCameraControls=NO; and use a cameraOverlayView to provide my own controls. I have had a look at Apple's PhotoPicker project already and my initial problem is how do I get an Overlay object onto my storyboard? I can't find such an object in the library. Any help gratefully received. Here is the code : toolBar=[

Not able to show the Image in proper format from camera in landscape mode

限于喜欢 提交于 2019-11-30 08:19:46
问题 I am working on iPad App in Ios6, There when we click the right bar button i am giving an action like below: -(IBAction)camerabuttonAction:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker.delegate = self; self.popoverController = [[UIPopoverController alloc] initWithContentViewController:picker]; [self.popoverController presentPopoverFromRect:CGRectMake(50, -250, 500, 300) inView

UIImagePickerController crashes on iOS10

我们两清 提交于 2019-11-30 08:09:22
On presenting UIImagePickerController with photo library source on iOS10 , my app crashes. On iOS10 with camera source and on iOS9 with photo library and camera sources, the app does not crash. The app is written in Swift 2.2 and built by Xcode 7.3.1 . Why does the crash occur? let imagePicker = UIImagePickerController() imagePicker.sourceType = .PhotoLibrary imagePicker.allowsEditing = true imagePicker.delegate = self self.presentViewController(imagePicker, animated: true, completion: nil) You may need to put the NSCameraUsageDescription (if your app uses the Camera) and