uiimagepickercontroller

app name doesn't appear in permission request alert

爱⌒轻易说出口 提交于 2020-01-04 05:58:30
问题 I am using UIImagePickerController to allow the user to pick images from the device. When doing it the first time, I get a standard permission request alert, but the app name is missing.. I couldn't find any mention for this in the documentation. imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; imagePickerController.mediaTypes = @[(NSString *)kUTTypeImage]; [self presentViewController:imagePickerController animated:YES completion:nil]; Other permission request

Is it possible to use a force touch (3D Touch) with the standard controller UIImagePickerController?

被刻印的时光 ゝ 提交于 2020-01-04 00:30:19
问题 I try by force pressing in UIImagePickerController to get the image, but instead of calling the didFinishPickingMediaWithInfo I get nothing. Additional info: When I try to force pressing on the photo, I get a messages: "*** error reading settings archive file: ISRootSettings: /var/mobile/Containers/Data/Application/0A2D79B3-C024-45F0-BD80-30B866F98558/Documents/{Bundle_ID}.settings/ISRootSettings_10.plist" "Use -removeDeferredKeyObserver: instead of -removeKeyObserver:". It's weird. 来源: https

Removing cancel button in UIImagePickerController?

陌路散爱 提交于 2020-01-03 05:26:08
问题 I am developing an app for ios 5. I need to remove the cancel button on UIImagePickerController i searched for this problem on the forum but didnt get exact answer can someone please help me with this? 回答1: That is because it is not possible to remove that cancel button. That is an inbuilt function and you can not make changes in the same. 回答2: I will give the best method to achieve this: First create a subclass of the UiImagePickerController in the subclass respond to the

Crop UIImage in UIScrollView like in “Move And Scale”

本小妞迷上赌 提交于 2020-01-03 02:49:05
问题 How to create custom "Move and scale" view as in UIImagePickerController? I need move and scale my custom UIImages, not from Photo library. Or maybe there is way to pass UIImage to this view? 回答1: Answering my question. Solved this problem with good example. Hope someone it will help 来源: https://stackoverflow.com/questions/12669596/crop-uiimage-in-uiscrollview-like-in-move-and-scale

How to crop a 4*3 image in photoLibrary or camera in swift

Deadly 提交于 2020-01-02 09:57:11
问题 I want to crop the image after using camera or select from photoLibrary. For now, I can only crop the square image and I have no idea how to crop a 4*3 image. Here is my part of code let imagePicker : UIImagePickerController = UIImagePickerController() imagePicker.delegate = self imagePicker.sourceType = .PhotoLibrary imagePicker.allowsEditing = true 回答1: I did not know that links are not permitted as answer. Here I will try to answer the question. Aim: Crop image with a predefined ratio.

How to use image picker in iPad?

怎甘沉沦 提交于 2020-01-02 08:27:26
问题 I know how to use image picker in iPhone , although know need to use new class UIPopoverController in iPad, but still can not figure out one way to use image pickr in iPad, any one has the same problem ? thanks 回答1: UIImagePickerController is just a view controller. If you know how to use a UIPopoverController to present a view controller, then it's just the same way. UIImagePickerController* imagePicker = ... UIPopoverController* popover = [[UIPopoverController alloc]

How to use image picker in iPad?

做~自己de王妃 提交于 2020-01-02 08:25:25
问题 I know how to use image picker in iPhone , although know need to use new class UIPopoverController in iPad, but still can not figure out one way to use image pickr in iPad, any one has the same problem ? thanks 回答1: UIImagePickerController is just a view controller. If you know how to use a UIPopoverController to present a view controller, then it's just the same way. UIImagePickerController* imagePicker = ... UIPopoverController* popover = [[UIPopoverController alloc]

Cannot change cameraFlashMode for UIImagePickerController iphone 4 custom cameraOverlayView

时光总嘲笑我的痴心妄想 提交于 2020-01-02 07:12:48
问题 Question : Why imagePickerController.cameraFlashMode always returns 0 on iphone 4 and returns correct values with iphone 5 ? I init my UIImagePickerController and set the cameraFlashMode to UIImagePickerControllerCameraFlashModeOn: imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera; imagePickerController.mediaTypes = [NSArray arrayWithObject:@"public.image"]; imagePickerController.cameraCaptureMode =

How to change button color on UIImagePickerController navigation bar?

孤街浪徒 提交于 2020-01-02 02:47:08
问题 I have managed to change the color of the navigation bar but the color of the buttons is still black. Is there any way to change the color of the buttons as well? See below image. UPDATE : Sorry had to remove the image due to copy right issue. 回答1: It is not possible without your custom image. but you should change the tint color as soon as you create the navigation controller: UIImagePickerController *pickerImg = [[UIImagePickerController alloc] init]; pickerImg.navigationBar.barStyle =

ios7 CameraPickerController image from camera is frozen

旧时模样 提交于 2020-01-01 12:06:07
问题 I have this simple code for camera View controller: UIImagePickerController picker = new UIImagePickerController(); picker.PrefersStatusBarHidden (); picker.SourceType = UIImagePickerControllerSourceType.Camera; UIImagePickerControllerCameraDevice dev = picker.CameraDevice; PresentViewController (picker, false, null); picker.FinishedPickingMedia += (object sender, UIImagePickerMediaPickedEventArgs e) => BeginInvokeOnMainThread (delegate {DismissViewController (false, null);}); When app starts