uiimagepickercontroller

Can the Cancel button be removed from a UIImagePickerController in OS 3.2?

六眼飞鱼酱① 提交于 2019-12-02 05:01:48
问题 The problem: There was an image here, but the link went dead. It shows a UIImagePickerController shown inside a popover, as a view inside of another controller (that is, it's not the root VC of the popover). It sports a Cancel button. Can this button be killed in a popover? I can remove the button in the ABPeoplePicker*Controller that appears when picking Contacts by editing the private VC's navigation item on the fly, but this one eludes me (no UINavigationControllerDelegate methods are

How to show all camera controls with/for UIImagePickerController?

╄→гoц情女王★ 提交于 2019-12-02 04:31:50
I have trouble showing the camera controls when using UIImagePickerController. Specifically, I need to be able to select between slo-mo, video, photo, square and pano. The essential part of code I use is: UIImagePickerController *pc = [[UIImagePickerController alloc] init]; [pc setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; pc.mediaTypes = [[NSArray alloc] initWithObjects:(NSString *)kUTTypeImage, nil]; But this shows a picker controller with the ability to take a picture only i.e., no square nor pano modes either. Setting pc.mediaTypes to: pc.mediaTypes = [[NSArray alloc]

Problem opening new ViewController after UIImagePickerController

随声附和 提交于 2019-12-02 04:18:01
I am trying to open up a new view (UnprocessedPhotoViewController) immediately after the delegate function for my UIImagePickerController returns a "didFinishPickingImage". Unfortunately, it appears that I can either open the UIImagePickerController modal view, or switch to the UnprocessedPhotoViewController as a modal, but not both sequentially. In the code below, a button press activates the pickPhoto IBAction. This code activates the UIImagePickerController successfully. After the user selects an image, the didFinishPickingImage delegate function is called, which stores the image to a

Can the Cancel button be removed from a UIImagePickerController in OS 3.2?

孤街醉人 提交于 2019-12-02 03:31:35
The problem: There was an image here, but the link went dead. It shows a UIImagePickerController shown inside a popover, as a view inside of another controller (that is, it's not the root VC of the popover). It sports a Cancel button. Can this button be killed in a popover? I can remove the button in the ABPeoplePicker*Controller that appears when picking Contacts by editing the private VC's navigation item on the fly, but this one eludes me (no UINavigationControllerDelegate methods are called by the UIIPC ). I think you can change it to something else (not sure about removing) because

How to mute mic while Recording using UIImagePickerController?

不想你离开。 提交于 2019-12-02 03:29:10
问题 I am using UIImagePickerController for recording video in one of my application. i have successfully Recorded video. But now i want to mute mic (video without audio) while recording video. i have searched Alot but not a single clue about it. please help me about this issue. is it possible or not. if possible than how. thanks in advance. 回答1: If you want your app to be in app store , then there is no apple approved method to actually mute whole iPhone.There are certain libraries but they are

UIImagePickerController inside UIPopoverController doesn't show Cancel button on iOS7

本小妞迷上赌 提交于 2019-12-02 02:59:58
I'm using UIImagePickerController inside a UIPopoverController to select image just from photo albums. When I launch app on device running iOS 8, the Cancel button on the top right of the pop over appeared normally like this: But when I launch the app on device running iOS 7, the Cancel button disappeared: The code I used to show the picker: UIImagePickerController *pickerController = [[UIImagePickerController alloc] init]; [pickerController setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; pickerController.delegate = self; _popOver = [[UIPopoverController alloc]

How to check a image selected is Panorama image or Not

回眸只為那壹抹淺笑 提交于 2019-12-02 02:41:41
问题 How to check, the image selected from UIImagePickerController is a Panorama Image or not? 回答1: In this UIImagePickerController delegate method (be sure to add delegate methods to your View Controller class): - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [self dismissViewControllerAnimated:YES completion:NULL]; UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage]; // determine if it's panorama by

why swift use a struct as dictionary key instead of a string here?

狂风中的少年 提交于 2019-12-02 02:28:49
Why UIImagePickerController.InfoKey type is struct not a string ,what is the benefit to use struct as a dictionary key instead of string? public struct InfoKey : Hashable, Equatable, RawRepresentable { public init(rawValue: String) } } extension UIImagePickerController.InfoKey { public static let mediaType: UIImagePickerController.InfoKey public static let originalImage: UIImagePickerController.InfoKey // a UIImage public static let editedImage: UIImagePickerController.InfoKey // a UIImage public static let cropRect: UIImagePickerController.InfoKey // an NSValue (CGRect) It's simple, the

How to get rid of the black ground on the image returned from UIImagePickerControllerEditedImage when using UIImagePicker

被刻印的时光 ゝ 提交于 2019-12-02 02:26:14
When using UIImagePicker, it allows to get into Edit mode. Then for an image taken with landscape mode, if user don't scale it manually within the UIImagePicker, there would have black stripe/background on the top and bottom of the image. Is there a way to get rid of that and make that portion of the image to be transparent? steamx #pragma mark UIImagePickerControllerDelegate - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *img = nil; CGRect cropRect = [[info valueForKey:UIImagePickerControllerCropRect] CGRectValue];

How to check a image selected is Panorama image or Not

≯℡__Kan透↙ 提交于 2019-12-02 02:08:57
How to check, the image selected from UIImagePickerController is a Panorama Image or not? In this UIImagePickerController delegate method (be sure to add delegate methods to your View Controller class): - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [self dismissViewControllerAnimated:YES completion:NULL]; UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage]; // determine if it's panorama by checking its dimension CGFloat imageWidth = image.size.width; CGFloat imageHeight = image.size.height; // display