uiimagepickercontroller

Why would app try to save to PLSharedManagedObjectContext?

▼魔方 西西 提交于 2019-12-13 05:29:18
问题 The following is a crash report I received from my crash reporting service, HockeyApp. The reason for the failure is a failure to save in PLSharedManagedObjectContext. I (think) I am doing all of my saves in the main app delegate managedObjectContext. Why is the PLSharedManagedObjectContext the one being saved to? I think this is the relevant code: -(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { __ENTERING_METHOD__ DLog(@

save the captured image with the overlay image to the photoalbum in iphone

扶醉桌前 提交于 2019-12-13 03:48:13
问题 How can i merge the captured photo from UIImagePickerController and cameraoverlay view? Then i want to save it to the photos album. Need help on this. 回答1: Sorry i didn't get your question earlier.. One way to do is that to capture the screenshot programmatically and then edit the image according to your requirements and save it. This should help... How to take a screenshot programmatically 回答2: I would create an image context, then write both images into it. Then use

IOS 11 UIImagepicker for video how to move the slider to the bottom?

房东的猫 提交于 2019-12-13 03:07:02
问题 If UIImagepicker with mediatype set to video and allowsEditing to true, the slider on the top ist not touchable on the left side. So i cant crop the beginning of the video. Its working in IOS10 perfectly, but in iOS11 it seams to be buggy. How to move the slider to the bottom, like Apple did in Photos? This is my code: class func shouldStartVideoLibrary(_ target: AnyObject, canEdit: Bool) -> Bool { if !UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType

How to capture photo while recording video in iOS Swift?

我的梦境 提交于 2019-12-13 01:43:49
问题 Here, I am taking recording video from back camera of device. While taking video how to capture photo and save to photoLibrary. here is the code i used: var photoTagImage = Data() Highlighter button used take photo while taking video @IBAction func HightLightButtonClicked(_ sender: UIButton) { // return self.selectedtagsArray = NSMutableArray.init() if self.recordEventInfo.isDayEvent { let clipSecond: Int64 = 30 let clipName: String = "Hightlight" let dict: Dictionary <String, Any> = [

_UIImagePickerControllerUserDidCaptureItem not called xcode 6

十年热恋 提交于 2019-12-13 01:26:18
问题 Is it just me or _UIImagePickerControllerUserDidCaptureItem notification from uiimagepickercontroller stopped working on iOS 8 and XCode 6. I use it to rotate the camera overlay after the user taked a picture. PLease help 回答1: It's pretty strange, but in iOS 8 setting observer using [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(imagePickerControllerDidCapture) name:@"_UIImagePickerControllerUserDidCaptureItem" object:nil]; doesn't work for UIImagePickerController,

How do you tell whether UIImagePickerController cameraOverlayview will rotate or not?

隐身守侯 提交于 2019-12-13 00:16:22
问题 IOS 6 on the Ipad rotates the UIImagePickerController cameraOverlayView on landscape mode, but IOS 6 on the iphone 3GS does not - thank you Apple! I dont know the behaviour for IOS 5, or other devices, so is there a way of predicting this behaviour so i can apply a rotation transform on the overlay view? thanks 回答1: I had this issue as well. Here's what I discovered: In the Target's "iPad Deployment Info" config, make sure you've enabled "Landscape Left" and "Landscape Right" modes - even if

Severe memory problems with UIImagePickerController using Camera

妖精的绣舞 提交于 2019-12-12 23:09:34
问题 I've noticed that when I load a UIImagePickerController and I take a picture with it, didReceiveMemoryWarning is called. Also, in Instruments, there is a significant memory leak (not by me, I swear!). I've heard that this is a problem with UIImagePickerController but, I'm not sure how to fix it. Here is my implementation of UIImagePickerController. UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; // Create the imagePicker imagePicker.delegate = self; imagePicker

-[UIImage length]: unrecognized selector sent to instance error with a NSMutableArray with Images

扶醉桌前 提交于 2019-12-12 11:34:31
问题 I have a storyboard app which has a UIViewController and a UICollectionViewController . In the view controller, the user chooses multiple photos from the iPhone's photo library (Since there is no API for multi-select in iOS, I used ELCImagePickerController to achieve this). And it segues to the collection view controller where the selected photos should be shown in little image views. The image library shows up and I am able to select multiple photos. But when it segues to the collection view

How to save images from Camera to specific folder in iPhone gallery?

百般思念 提交于 2019-12-12 10:55:08
问题 Hey I'm new to iPhone and I have been trying to make an app recently. Basically, what I want to do is if user will capture any image from camera, then it should save in the device gallery. I know how to save the photo in gallery, it's working for me, but I am having trouble with to save all the captured images into a specific folder (like a new album) in device gallery. I want the user to be able to take several pictures and then copy pictures from that specific folder to the gallery. here is

Application is enabled only to Portrait, but UIImagePickerController rotates in iOS6

丶灬走出姿态 提交于 2019-12-12 10:44:06
问题 Please note that the answer below - do not work for iOS6 so I still need an answer! My application is enabled only for Portrait mode. However, if I embed a UIImagePickerController inside as a subview, and rotate the device, the top and bottom bar stays in the same location, however UIImagePickerController does rotate. How can I prevent it from rotating? This is the code: [self.view.window addSubview:self.imagePickerController.view]; self.imagePickerController.showsCameraControls = NO; self