uiimagepickercontroller

How to remove zoom slider in UIImagePickerController

陌路散爱 提交于 2019-12-11 01:39:21
问题 I need to remove the zoom slider in the camera screen. This is my code: import UIKit extension UIImagePickerController { class func sourceCameraModePhoto(_ delegate: UIImagePickerControllerDelegate & UINavigationControllerDelegate, overlayView: UIView) -> UIImagePickerController { let picker = UIImagePickerController() picker.sourceType = .camera picker.cameraCaptureMode = .photo picker.showsCameraControls = false picker.view.addSubview(overlayView) picker.delegate = delegate return picker }

App Crashed due to Invalid signature for pointer dequeued from free list in UIImagePickerController

孤者浪人 提交于 2019-12-11 00:51:33
问题 I am facing problem in UIImagePickerController selection. When I choose source from Photo Library App crashes due to Invalid signature for pointer dequeued from free list . then If I run again it works fine with the same code. I searched on google and found one question related to my query Xcode - My app crash and the error is "Invalid pointer dequeued from free list *** set a breakpoint in malloc_error_break to debug" . but solution isn't working in my case. I am using Xcode 8.1 and my

UIImagePickerController ios 5 issue when select the image uising UIPopoverController in ipad

别来无恙 提交于 2019-12-11 00:42:54
问题 i have the problem with the select the image from UIImagePickerController in ipad in ios 5. same code was run perfectly in ios 4 . so what is the problem ? can any one help me how to use UIImagePickerController in ios 5 ? Is there any difference between ios 4 and ios 5 for UIImagePickerController ? Below is the code for the issue. -(IBAction)selectExitingPicture:(id)sender { if ([popoverController isPopoverVisible]) { [popoverController dismissPopoverAnimated:YES]; [popoverController release]

UIImagePickerController cameraViewTransform is not working in iOS 10

风格不统一 提交于 2019-12-11 00:15:46
问题 i have implemented camera overlay view in my application. camera overlay view working good in iOS 9. but iOS 10 cameraViewTransform not working how to resolve this problem. please guide me. Thanks my working code CGSize screenBounds = [UIScreen mainScreen].bounds.size; CGFloat cameraAspectRatio = 4.0f/3.0f; CGFloat camViewHeight = screenBounds.width * cameraAspectRatio; CGFloat scale = screenBounds.height / camViewHeight; picker.cameraViewTransform = CGAffineTransformMakeTranslation(0,

iOS 5 : UIImagePickerController crash

邮差的信 提交于 2019-12-10 21:50:07
问题 I am facing problem with the UIImagePickerController in iOS 5. My App was developed in iOS4.3 but now I am upgrading it to iOS5 . My App crashes when I try to select Image from Photo Library. It is crashing in main.m file with EXE_BAD_ACCESS and does not giving any crash logs. I am using following code for UIImagePickerController to pick image from photo library. -(IBAction) photoLibraryAction { if ([self isPad]) { UIImagePickerController* picker = [[UIImagePickerController alloc] init];

UIImagePickerController with cameraOverlayView focusses when button in overlay is tapped

烈酒焚心 提交于 2019-12-10 21:15:17
问题 I'm new to Objective C and it's my first question I'm posting here so this is probably the easiest question in the world to answer, but I couldn't figure this one out. I am trying to create an iOS app that uses the camera. I'm using the UIImagePickerController class to display the camera and take pictures, but I've created a custom UIView that contains a bunch of UIButton instances which overlay the camera preview frame, using the cameraOverlayView property. I'm using the a method to put the

Save an UIImagePicker Video

自古美人都是妖i 提交于 2019-12-10 20:38:20
问题 I have searched and searched but can not find a basic UIImagepicker video save code. I have everything set up and just have a blank void. - (void)imagePickerController:(UIImagePickerController *) picker didFinishPickingMediaWithInfo:(NSDictionary *) info{ } I know it has something to do with the dictionary, but after that I'm lost, any help? 回答1: Try this code for save the video on photo album. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:

swift video to document directory

非 Y 不嫁゛ 提交于 2019-12-10 19:23:02
问题 I need to save video captured with UIImagePicker to a custom folder in app document directory func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) { picker.dismissViewControllerAnimated(true, completion: nil) if let fileURL = info[UIImagePickerControllerMediaURL] as? NSURL { if let videoData = NSData(contentsOfURL: fileURL) { //save file to doc dir or save NSData into Core Data binary field } } } alternatively I can save

Filter Live camera feed

冷暖自知 提交于 2019-12-10 17:41:30
问题 So i've been using UIImagepickercontroller to access the camera for photo and video capture, then i wanted to apply filters on those 2 sources, i succeeded with filtering token photos but i'am having trouble finding the solution for the rest, all i need is to access the raw image data : the live image feed that the camera is showing , apply the filter and then show the filtered ones instead. Any help or advice will be appreciated. 回答1: UIImagePickerController doesn't give you low level access

UIImagePickerController - Camera not ready

非 Y 不嫁゛ 提交于 2019-12-10 17:16:25
问题 I'm developing an iPhone app that records video. I create a UIImagePickerController, limit it to video recording then programatically ask the camera to startVideoCapture. Unfortunatly when I run the app I get the following in the console; "UIImagePickerController: ignoring request to start video capture; camera is not yet ready." Obviously the iPhone is not done setting things up. Is there a way that I can check the setup process has completed before starting to record? Many thanks in advance