uiimagepickercontroller

UIButton inside UIImagePickerController.cameraOverlayView not responding

╄→гoц情女王★ 提交于 2019-12-06 15:47:50
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.modalPresentationStyle = UIModalPresentationCurrentContext; self.imagePickerController.delegate = self; self

How do I use [camera takePhoto] and edit using UIImagePicker - UIImagePickerController.allowsEditing = YES

南笙酒味 提交于 2019-12-06 15:42:44
I'm going to feel dumb but I've searched everywhere and have not found an answer. I've been able to pull up the "edit" view using the default camera's controls. However I threw an overlay on it and I have a UIButton hooked up to IBAction take photo which looks like [UIImagePickerController takePicture]. However, it totally skips the editing part even though I set allows editing to YES. Is there another command to call it? Right now, it just goes straight to didFinishPickingMediaWithInfo. camera.sourceType = UIImagePickerControllerSourceTypeCamera; camera.cameraDevice =

ALAsset valueForProperty:ALAssetPropertyLocation undeclared?

Deadly 提交于 2019-12-06 15:29:22
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 *image1 = [UIImage imageWithData:data]; bookmarkImage.image = image1; NSLog(@"new image size = %i", [data

Crop UIImage in UIScrollView like in “Move And Scale”

我与影子孤独终老i 提交于 2019-12-06 15:25:07
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? 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

Change UIImagePicker Navigation Bar style to blue

主宰稳场 提交于 2019-12-06 15:17:47
问题 All of my view has a blue navigation bar but when I want user to choose a photo, the UIImagePicker is black. I tried to set the navigation bar of UIImagePickerController to blue using UIBarStyleDefault but it does not work for me, the color is still black. I tried with other UIBarStyle like UIBarStyleBlack and UIBarStyleOpaque as well but it doesn't change the navigation bar of the picker anyway. Here is my code // Let the user choose a new photo. UIImagePickerController *imagePicker = [

Save a camera photo with an overlayed image - iphone SDK

可紊 提交于 2019-12-06 15:14:39
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 camera photo is previewed. I guess I just need to take a screen capture of these? I don't want to loose

Image became horizontal after successfully uploaded on server using Http Post

纵饮孤独 提交于 2019-12-06 14:32:27
问题 i capture the image using image picker, at the that time image is in its actual position. but after uploading it on server it became horizontal. i don't get any clue why that happening. here is my code NSString *urlString = @"Url"; NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; [request setURL:[NSURL URLWithString:urlString]]; [request setHTTPMethod:@"POST"]; NSMutableData *body = [NSMutableData data]; NSString *boundary = [NSString stringWithString:@"-------

Copy image from assets-library to an app folder

≡放荡痞女 提交于 2019-12-06 14:15:55
I have an UIImagePickerController and I would like to save a selected image to my app. I can do that easy by getting the current UIImage and save it (by creating a file) but I would prefer to directly copy the file from Library to my folder. So now I have an URL of the selected image : UIImagePickerControllerReferenceURL which return a specific pattern "assets-library". I tried to copy an image from this kind of URL to a path but without success. Is there a way to success on what I would like to do ? Thanks ! Shamsudheen TK You can do it through two ways First Way: Using imagePickerController

UiImagePickerController takePicture issues

百般思念 提交于 2019-12-06 14:08:10
I am having some issues creating my own custom "Take Picture" button. Basically, when I remove the default controls, the camera no longer does a shutter animation or goes through the editing process, just goes straight to the delegate method. So, here's some code. At first I was using the default layout, like so: (by the way, I've removed my if statements for determining hardware availability - they're irrelevant.) UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; picker.sourceType =

How to save path of image picked from UIImagePickerViewController to sqlite database and access it later ? ios

你离开我真会死。 提交于 2019-12-06 13:41:17
问题 I need to save path of the image picked from server and later access the path to show that image on user click by database retrival. -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { NSString *urlPath = [info objectForKey:@"UIImagePickerControllerReferenceURL"]absoluteString]; } and saving it to database. It saved as assets-library://asset/asset.JPG?id=E1136225-97DE-4BF4-A864-67E33D60737A&ext=JPG then I want to import to