uiimagepickercontroller

Memory issue using CGImage.ScreenImage and UIImagePickerController Mono Touch

我的未来我决定 提交于 2019-12-23 03:43:05
问题 I'm trying to create an IP Camera application for iPhone using mono touch. To get the camera feed, I call the CGImage.ScreenImage method continuously and convert the resulting UIImage into a byte array which is then transmitted across to the browser. The camera feed is displayed using a UIImagePickerController class by setting the SourceType = UIImagePickerControllerSourceType.Camera; Here are the complete code for the ImageController class: public class ImageController :

Save a camera photo with an overlayed image - iphone SDK

为君一笑 提交于 2019-12-23 03:25:28
问题 I think this should be simple but I am having some difficulty implementing it. I take a photo from the camera, the user can then move and scale it. They then choose "use" and they get a preview of their image. Now what I want to do is overlay an image on top of this preview image - which is also ok. But the part I am having difficulty is then I want to save the photo taken WITH the image that is over it into the library. I just have a UIView with my overlay image about the UIView where my

UIButton inside UIImagePickerController.cameraOverlayView not responding

倖福魔咒の 提交于 2019-12-23 01:42:11
问题 I have got a UIButton inside a UIView that I set as the cameraOverlayView. I also scaled the uiimagepicker cameraView to cover the whole screen (as you can see below in the picture). Here's my code : // CameraViewController.m - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. if(!self.imagePickerController) [self setupCamera]; } -(void)setupCamera{ self.imagePickerController = [[UIImagePickerController alloc] init]; self.imagePickerController

ALAsset valueForProperty:ALAssetPropertyLocation undeclared?

醉酒当歌 提交于 2019-12-23 01:07:13
问题 This might seem too easy or maybe it's just confusing for me... Or maybe I'm too tired to think rationally. I am trying to get the location of an UIImage that has been selected by the user from the photo album using imagePickerController. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *pic = [info objectForKey:@"UIImagePickerControllerOriginalImage"]; NSData *data = UIImageJPEGRepresentation(pic, 0.01f); UIImage

UIImagePickerController slow on opening for the first time, except for when you double tap

匆匆过客 提交于 2019-12-23 01:01:12
问题 I'm getting this really weird behaviour on iOS 9 with swift where I have a tableViewCell that opens an imagePicker when tapped on to take a picture of something, when you tap the cell for the first time it takes like 10 seconds to open the picker, but when you tap it twice it immediately opens... The initialisation code for the picker is as follows let certificateImagePicker = UIImagePickerController() certificateImagePicker.delegate = self certificateImagePicker.allowsEditing = false

ios 9.3 UIImagePickerController memory issue

三世轮回 提交于 2019-12-22 17:20:52
问题 Screenshot UIImagePickerController was working very well on iOS 9.2, with a memory usage of 19m in my iPhone. Since iOS 9.3, I noticed that the memory usage is increasing to 300m and the application crashes. my code: import UIKit import MobileCoreServices class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } func

iOS Swift 3 UIImagePickerController crash

[亡魂溺海] 提交于 2019-12-22 12:43:19
问题 I upgraded project to Swift 3 and I am getting a crash on the line (at various points/viewControllers in the project) : present(picker, animated: true, completion: nil) in the function: @IBAction func userImage(_ sender: AnyObject){ print("button pressed") let picker = UIImagePickerController() picker.delegate = self picker.allowsEditing = false picker.sourceType = .photoLibrary present(picker, animated: true, completion: nil) // -> crashes here } func imagePickerController(_ picker:

iOS Swift 3 UIImagePickerController crash

廉价感情. 提交于 2019-12-22 12:43:11
问题 I upgraded project to Swift 3 and I am getting a crash on the line (at various points/viewControllers in the project) : present(picker, animated: true, completion: nil) in the function: @IBAction func userImage(_ sender: AnyObject){ print("button pressed") let picker = UIImagePickerController() picker.delegate = self picker.allowsEditing = false picker.sourceType = .photoLibrary present(picker, animated: true, completion: nil) // -> crashes here } func imagePickerController(_ picker:

UIImagePickerController shows black bar when zooming – Is this a bug in iOS?

倖福魔咒の 提交于 2019-12-22 12:40:10
问题 Edit : It has been suggested this post is a duplicate, which is not the case as the black bars are not initially present an an affine transformation does not remedy the problem. I run this on an iPad Air 2 and target iOS 8. I have a UIImagePickerController whose showsCameraControls property is set to NO . When starting the app in landscape and then zooming in, this is what happens (all images are non-cropped): A black bar appears and can be gotten rid of by changing device orientation to

Programmatically Take Picture Without User Interaction

泪湿孤枕 提交于 2019-12-22 08:42:13
问题 How do I take Picture without User Interaction or without presenting ImagePickerController UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { [imagePickerController setSourceType:UIImagePickerControllerSourceTypeCamera]; } // image picker needs a delegate, [imagePickerController setDelegate:self]; // Place image picker on the screen [self