uiimagepickercontroller

How to subview a camera view?

好久不见. 提交于 2019-12-03 09:14:24
I am making an app that will let the user see themselves in a 'mirror' (the front facing camera on the device). I know of multiple ways of making a UIImageViewController with a view overlay, but I want my app to have it be the opposite way. In my app, I want the camera view to be a subview of the main view, without the shutter animation or the ability to capture photos or take videos and without it being full screen. Any ideas? The best way to accomplish this is to not use the built-in UIImagePickerController, but rather use the AVFoundation classes. You want to create an AVCaptureSession and

didFinishPickingMediaWithInfo returns different URL in iOS 13

感情迁移 提交于 2019-12-03 09:08:40
- (void)videoPickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey,id> *)info returns different URLs in iOS 13 and the other iOSs. Any idea why this might be happening? iOS 13: file:///private/var/mobile/Containers/Data/PluginKitPlugin/0849234B-837C-43ED-BEDD-DE4F79E7CE96/tmp/trim.B8AB021D-F4B6-4E50-A93C-8B7F7FB40A1C.MOV < iOS 13: file:///private/var/mobile/Containers/Data/Application/5AE52A95-6A2F-49A5-8210-D70E022E9A05/tmp/5A8D81B5-FC42-4228-9514-CD998A4E7FA9.MOV This caused me to have an error since I don’t have

UIImagePickerController Pick Multiple images

断了今生、忘了曾经 提交于 2019-12-03 09:02:52
I am trying to simply enable picking multiple images from photolibrary using the UIImagePickerController, I wish I can add a subview on bottom of the photo picker so it look something like this app does: It there a simple way you can do it? My code currently only pops the images in a standard way but I only dismiss the controller when loaded 6 images The important thing there is if anyway I can add a small view/toolbar to the photo picker view, like the example did, I then can do the rest - (void)getMediaFromSource:(UIImagePickerControllerSourceType)sourceType{ //get all available source types

how to save UIImagePicker image with a specific name

我的未来我决定 提交于 2019-12-03 08:59:46
i capture image from iphone using UIPickerController, then how programatically to save it with specific name, and to call the image later (by using the name), is it any possibilities to change the image size eg. from 100 x 100 pixels to 50 x 50 pixels thanks Boiler Bill The following code snippet will save the image to a file: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *anImage = [info valueForKey:UIImagePickerControllerOriginalImage]; NSData *imageData = UIImageJPEGRepresentation(anImage, 1.0); NSArray *paths =

Record video while other video is playing

本秂侑毒 提交于 2019-12-03 08:26:05
I am using UIImagePickerController to record a video. and am using AVPlayer to play a video. and adding AVPlayerLayer to UIImagePickerController's cameraOverlayView so that i can see video while recording. My requirement is I need to watch video while recording video using UIImagePickerController using headset i need to listen audio from playing video need to record my voice to recording video only my voice should be recorded but not playing video's audio. every thing working but 4. audio from playing video also mix with my voice. how to handle this case? My final goal is Out put for the

How to access camera flash on UIImagePickerController?

好久不见. 提交于 2019-12-03 08:17:31
I would like to know how to switch on the camera flash on the iPhone 4 with UIImagePickerController. if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerCameraDeviceFront] == YES) { /// What code here /// } else { NoFlash = [[UIAlertView alloc] initWithTitle:@"Uh-Oh" message:@"Your device doesn't have a flash camera" delegate:nil cancelButtonTitle:@"mhmm, OK" otherButtonTitles:nil]; NoFlash.delegate = self; [NoFlash show]; [NoFlash release]; } } I already read the UIImagePickerController Class Reference web page here: http://bit.ly/cdAhhB but I didn't find the answer. Can

Camera image rotation issue

限于喜欢 提交于 2019-12-03 08:12:33
I am facing a very strange problem here. When i click an image in portrait mode and upload it and then again fetch it it is displayed rotated 90 degrees counter clock wise. But when i see it in camera roll it is displayed in correct orientation as it was taken in. I have tried almost all possible links/codes for this issue but nothing seemed to help. I save images in JPEG representation.Please help with this someone. Thanks in advance!! Resolved by making a category on UIImage and scaling and rotating image based on their metadata EXIF's. Here's the magical piece of code: - (UIImage *

UIImagePickerController run out of memory with camera source

大城市里の小女人 提交于 2019-12-03 08:00:25
问题 I got a big performance issue using UIImagePickerController and saving the image on disk. I can't figure out what I am doing wrong. Here is my code: - (void)imagePickerController:(UIImagePickerController *)pick didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"]; NSData *imageData = [NSData dataWithData:UIImagePNGRepresentation(image)]; iPixAppDelegate *delegate = (iPixAppDelegate *)[[UIApplication sharedApplication

uiimagepickercontroller - get the name of the image selected from photo library

折月煮酒 提交于 2019-12-03 07:52:42
问题 I am trying to upload the image from my iPhone/iPod touch to my online repository, I have successfully picked the image from Photo Album but i am facing one problem i want to know the name of the image such as image1.jpg or some thing like that. How i would know the name of the picked image. 回答1: I guess knowing the exact image name would not be an issue rather getting a unique name for the picked image would solve your purpose so that you can upload the image on server and track it via its

How do you color/customize the UIImagePickerController's Navigation Bar?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 07:37:53
问题 What is the correct way to color the UIImagePickerController's nav bar? I merely tried to see the background color but I'm getting a faded color as seen in the image below; as if some view is obstructing it. let picker = UIImagePickerController() picker.sourceType = type picker.mediaTypes = [kUTTypeImage] picker.delegate = self picker.navigationBar.backgroundColor = UIColor.redColor() It appears to have some view obscuring the redColor(): (lldb) po picker.navigationBar.subviews 2 values { [0]