uiimagepickercontroller

UIImagePickerController in iOS 6 doesn't work properly

吃可爱长大的小学妹 提交于 2019-12-24 15:00:19
问题 I'm having a very strange behavior: in iOS 5 I present UIImagePickerController in this way: imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; imagePicker.modalPresentationStyle = UIModalPresentationFullScreen; imagePicker.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentModalViewController:imagePicker animated:YES]; now in iOS 6 this produce a crash. I resolved the crash by writing a category on UIImagePickerController : @implementation

Custom ios camera shutter not opening?

孤街浪徒 提交于 2019-12-24 12:08:40
问题 I have tried UIImagePickerController in custom camera,when application going out or when i am going call the safari , that time camera shutter not open,i have used following code. -(IBAction)cameraAction:(id)sender { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setValue:@"rear" forKey:@"rearcamera"]; [defaults synchronize]; NSLog(@"hai App %@",[defaults valueForKey:@"closeApp"]); dispatch_async(dispatch_get_main_queue(), ^{ [cameraBut setSelected:NO]; self

UIImagePickerController image size

老子叫甜甜 提交于 2019-12-24 12:05:37
问题 I'm using UIImagePickerController in my app to take pictures and I'm using my own controls, which means that the UIImagePickerController showsCameraControls property is set to NO and I have a UIButton inside the overlayView that shoots the pictures. Now, I noticed that the image that I save in the Photo Library is actually showing a bigger area than what shows in the preview view. Has anybody else had the same issue? Any solution to get the picture showing just what was in the preview? 回答1:

UIImagePickerController memory warnings

偶尔善良 提交于 2019-12-24 11:37:59
问题 When having many data extensive apps running in the background (sometimes none), whenever I present the UIImagePickerController, i get a memory warning, usually between 1 and 2. I'm sure its not my code, because it i recieve that memory warning as soon as the camera view is presented. I'm keeping my instance of the UIImagePickerController in the app delegate (after reading countless articles). Anyone have any advice? 回答1: A memory warning isn't a sign of a bug necessarily. Bringing up the

ALAssetsLibrary invalid or null

☆樱花仙子☆ 提交于 2019-12-24 11:37:57
问题 I get the following error message : invalid attempt to access <ALAssetPrivate: 0xa4a1ed0> past the lifetime of its owning ALAssetsLibrary when I try to create custom Image Picker. I used this APPLE sample to create this app. The sample Apple app works perfectly. But when I copied that sample code to my app it get the above error message. Please can someone help me why this error comes & ALAssetsGroup become null. 回答1: I found the answer for this problem. The problem is my ALAssetsLibrary I

UIImagePickerController detect when album is selected

岁酱吖の 提交于 2019-12-24 11:32:50
问题 I need to detect when an album is selected (any album). The didFinishPickingMediaWithInfo only get called when an image or movie is selected. Any suggestions? I need to prevent the status bar from showing up caused by the UIImagePickerController when you tap on any albums. (iOS 7 related) 来源: https://stackoverflow.com/questions/18833115/uiimagepickercontroller-detect-when-album-is-selected

Is there a UIImagePicker for the Mac Desktop

流过昼夜 提交于 2019-12-24 11:01:13
问题 I have found Apple's example app ImagePicker that uses IKImagePicker, but it appears that in Lion it has been removed. Is there an alternative to this - or how would I prompt users to select an image to use within my app. 回答1: You want IKPictureTaker. The IKPictureTaker class represents a panel that allows users to choose images by browsing the file system. The picture taker panel provides an Open Recent menu, supports image cropping, and supports taking snapshots from an iSight or other

Black Bar in UIImagePicker on iPad - Only in Landscape Right Orientation

喜欢而已 提交于 2019-12-24 10:39:31
问题 I am showing a UIImagePicker (itself in a UIView) via a UIPopOver. This works fine, however when the iPad is rotated onto its right side I get a strange black bar along the left hand side of the popover as per the image below. The cancel button is also partially off the right hand of the screen. This doesn't happen in any other orientation which is odd. The code is also listed below. Can anyone suggest why I am getting this black bar ? imagePickerController = [[UIImagePickerController alloc]

swift : UIPickerViewController delegates not called after Class-Extraction

别来无恙 提交于 2019-12-24 08:30:01
问题 I am working on an app which requires user to take selfie of pick Images from different ViewController. I want to extract class just for this purpose. But after extraction of class the delegate methods of UIPickerViewController are not being called. right now, I have a class called MultiMediaManager inside MultiMediaManager.swift file. class MultiMediaManager: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate { let imagePicker = UIImagePickerController() var

ZBar SDK iOS: Remove cancel button in scanner view?

纵然是瞬间 提交于 2019-12-24 08:14:03
问题 Is there a way to remove the cancel button in the initial scan view? I have my App set to go immediately to scanner, so the cancel is unnecessary. 回答1: Assuming you are using version 1.2 of the SDK and you are also using the ZBarReaderViewController, you could set the property showsZBarControls = NO; That will remove the cancel and information button. 回答2: Found it. While setting showZBarControls = NO removes the entire bar, I needed something that would just remove the cancel button. The