uiimagepickercontroller

UIImagePickerController throws ERROR: 185: Error creating aggregate audio device: 'what' when trying to select video

£可爱£侵袭症+ 提交于 2019-11-29 11:19:56
问题 when i try to use UIImagePickerController to select a video from camera roll in the iOS-Simulator of XCode 5, i get the aforementioned error. this is the output: 2013-11-02 21:28:44.788 Imagepicker[89146:1403] 21:28:44.788 ERROR: 185: Error creating aggregate audio device: 'what' 2013-11-02 21:28:44.788 Imagepicker[89146:1403] 21:28:44.788 WARNING: 219: The input device is 0x32; 'AppleHDAEngineInput:1B,0,1,1:2' 2013-11-02 21:28:44.789 Imagepicker[89146:1403] 21:28:44.789 WARNING: 223: The

UIImagePickerController in iOS 7 status bar

核能气质少年 提交于 2019-11-29 11:02:53
In io7,the status bar on top a view is a nightmare.Fortunally i managed to make it work so it will be placed above the view.I did it like this: - (void)viewDidLoad { [super viewDidLoad]; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) { self.view.backgroundColor=[UIColor colorWithRed:(152/255.0) green:(204/255.0) blue:(51/255.0) alpha:1] ; CGRect frame = self.topNav.frame; frame.origin.y = 20; self.topNav.frame = frame; } .... } Now my status bar is above my navigation bar. But when it comes to calling UIImagePickerController things are different.The above code has no effect.

How to create a custom UIImagePickerController with full-screen images ios

∥☆過路亽.° 提交于 2019-11-29 10:57:33
I have a simple UIImagePickerController which will use the camera to take a picture, but there are a couple things I would like it to do: Have a custom camera UI Take a full-screen instead of 480x640 (if on 4inch phone) Here is my code for showing the UIImagePickerController: - (IBAction)pick:(id)sender { NSLog(@"abc"); picker = [[UIImagePickerController alloc] init]; if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { [picker setSourceType:UIImagePickerControllerSourceTypeCamera]; } else { [picker setSourceType

takepicture() vs UIGetScreenImage()

馋奶兔 提交于 2019-11-29 10:52:00
I'm trying to build a QRCodeReader for a project our research group is working on for the iPhone. After much research I found the program called QuickMark . This program scans automatically for QRCodes. What it appears to do is load the UIImagePicker and read off data from the camera. I suspect it is using UIGetScreenImage and taking a screenshot from the camera and decoding it. Now I tried using the new takepicture() method from the 3.1 iPhone API but that seems not to be able to do what the above does which is take photos every second or so, silently. Now I had heard that UIGetScreenImage is

Setting delegate for UIImagePicker returns error

人盡茶涼 提交于 2019-11-29 10:37:04
问题 Having a problem in some swift code I had written for an OCR translation app. The code snippet is below: @IBAction func btnOCR(sender: AnyObject) { var languageAlert = UIAlertController(title: "For Your Information...", message: "The OCR feature currently only supports English & French.", preferredStyle: .Alert) languageAlert.addAction(UIAlertAction(title: "Okay", style: .Default, handler: { action in var image = UIImagePickerController() image.sourceType = UIImagePickerControllerSourceType

How to take a photo on the volume-up event when using UIImagePickerController with custom camera controls?

我怕爱的太早我们不能终老 提交于 2019-11-29 08:47:53
In iOS 5, the volume-up button will now take a photo in the camera app, and on a UIImagePickerController instance where .showsCameraControlls == YES . Happy days. However, when I set showsCameraControlls to NO , and supply my own (which in turn triggers takePicture method), the volume-up button will no longer work. How can I detect the volume event while the UIImagePickerController is showing? The old way to detect volume changes was like so: AudioSessionSetActive(true); [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(volumeChanged:) name:@"AVSystemController

iOS UIImagePickerController, set frame

我是研究僧i 提交于 2019-11-29 08:19:11
I'm trying to accomplish the following result: Set the frame of my UIImagePickerController to, lets say 200 x 200, Set my frame at the bottom-right corner (just like Facetime/Skype does) and show the front/rear (doesn't matter) camera stream. Here's my code, for some reason, setFrame is not working! self.picker = [[UIImagePickerController alloc] init]; self.picker.sourceType = UIImagePickerControllerSourceTypeCamera; self.picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto; self.picker.cameraDevice = UIImagePickerControllerCameraDeviceRear; self.picker.showsCameraControls

iphone imagepickerController picking video from photo library

旧城冷巷雨未停 提交于 2019-11-29 08:09:34
I am now trying to implement a app like picking image and video from device photo album and uploading it to server.. here i can able to display both image and video in a table view using uiimagepickercontoller but i can only able to pick image not video.. How to pick a video form photo lib using UIimagepickercontroller.... UIImagePickerController *ipc = [[UIImagePickerController alloc] init]; ipc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; ipc.mediaTypes =[UIImagePickerController availableMediaTypesForSourceType:ipc.sourceType]; ipc.delegate = self; ipc.editing = NO; [self

Not able to show the Image in proper format from camera in landscape mode

百般思念 提交于 2019-11-29 06:27:55
I am working on iPad App in Ios6, There when we click the right bar button i am giving an action like below: -(IBAction)camerabuttonAction:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker.delegate = self; self.popoverController = [[UIPopoverController alloc] initWithContentViewController:picker]; [self.popoverController presentPopoverFromRect:CGRectMake(50, -250, 500, 300) inView:appDelegate.splitview.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES]; } My problem is,

Swift 4.2 Cannot convert value of type '(UIImagePickerController.InfoKey).Type' to expected argument type 'UIImagePickerController.InfoKey'

為{幸葍}努か 提交于 2019-11-29 05:57:43
My below code was working just fine with swift 4 but after upgrading to swift 4.2 I am getting this error, I had wasted my 3 hours searching what's the issue but failed. Please if anyone can guide me how to fix this. func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { if postType == 2 { let image = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController.InfoKey)] as! UIImage mediaType.image = image } else { videoURL = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController