uiimagepickercontroller

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

我们两清 提交于 2019-12-06 13:39:25
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 portrait (which will also show the black bar) and then changing it back. After change to portrait: Back to

CIGaussianBlur changes imageOrientation sometime

半世苍凉 提交于 2019-12-06 13:03:17
In my iOS app I want to apply a filter CIGaussianBlur on UIImage, when it gets a image having big height it rotates the image CIContext *context = [CIContext contextWithOptions:nil]; CIImage *inputImage = [[CIImage alloc] initWithImage:image]; //get image for blur CIFilter *blurFilter = [CIFilter filterWithName:@"CIGaussianBlur"]; [blurFilter setDefaults]; [blurFilter setValue:inputImage forKey:@"inputImage"]; CGFloat blurLevel = 0.0f; // Set blur level [blurFilter setValue:[NSNumber numberWithFloat:blurLevel] forKey:@"inputRadius"]; // set value for blur level CIImage *outputImage =

Hide UIImagePickerControllerSourceTypceCamera toolbar, but specific buttons?

空扰寡人 提交于 2019-12-06 12:55:21
In order to make my custom toolbar in my UIImagePickerControllerSourceTypeCamera , I have to turn off the camera control like this: pickerOne.showsCameraControls = YES; I want to show the zoom, flash, switch cameras, and focus on the UIImagePickerController , but I want to create my custom view. When adding my custom view, it only shows up if I turn off the cameraControls . Is there any way to not hide the camera controls and make my custom view? Or will I have to manually add those buttons in? You can ignore the touches on your overlayview by checking the receiving view in the hittest method.

UIImagepickerController [takepicture] modal view disappears no delegate callback

巧了我就是萌 提交于 2019-12-06 12:46:10
问题 Update: This has been answered. It was my own stupidity, possibly not worth reading any more of this question. lol. Question: Right so i have this UIViewController(master) subclass, it has a UIImagepickerController(camera), it also has a UIView(overlayView). Master setups the camera to be configured as a camera only with a custom cameraOverlay, hiding the custom controls e.t.c. All appears to work fine apart from when i try to programatically take a picture. What happens is the overlayView

How to crop a 4*3 image in photoLibrary or camera in swift

耗尽温柔 提交于 2019-12-06 12:44:40
I want to crop the image after using camera or select from photoLibrary. For now, I can only crop the square image and I have no idea how to crop a 4*3 image. Here is my part of code let imagePicker : UIImagePickerController = UIImagePickerController() imagePicker.delegate = self imagePicker.sourceType = .PhotoLibrary imagePicker.allowsEditing = true I did not know that links are not permitted as answer. Here I will try to answer the question. Aim: Crop image with a predefined ratio. Approach: In the viewcontroller - we need to add a scrollview - so that we can put the image there and zoom or

UIImagePickerController and the need to save the UIImage asap vs. exploiting the file backing

自作多情 提交于 2019-12-06 12:01:14
I've read uiimagepickercontroller uiimage memory and more and other relevant questions, but I can't get my head around one thing, and I wonder if there are people around here with experience on this particular aspect. In my app I let the user select an image from his library, ultimately resulting in an upload. (An interesting thing here, is that the images in there may originate from 12-megapixel high quality camera's, since e.g. iTunes happily syncs them into the phone.) For various reasons, I UIImageJPEGRepresentation the thing right away to a locally stored file. Without much thought, I

Get back UIImage data after saving it to photo Library in iOS

只谈情不闲聊 提交于 2019-12-06 10:42:37
I got an issue after saving an image created by my app into iPhone Library and trying to get it back. Image data are differents. Create Image 1.Code I create an image without using alpha (In fact I got the same result if I use alpha) + (UIImage *)createImageFromData:(NSData *)data { uint8_t *imageData = (uint8_t *) calloc(WIDTH * HEIGHT * 3, sizeof(uint8_t)); [data getBytes:imageData]; CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGDataProviderRef provider = CGDataProviderCreateWithData(NULL, imageData, WIDTH * HEIGHT * 3, NULL); CGBitmapInfo bitmapInfo =

UIImagePickerController appears but camera doesn't start on iOS 5

China☆狼群 提交于 2019-12-06 07:41:00
问题 I have an app where I present a UIImagePickerController with source type UIImagePickerControllerSourceTypeCamera . Everything works fine unless I leave the app and come back (multitasking is enabled so the app comes back right where it left off) and I present the UIImagePickerController again. It appears on screen but the camera never shows, the animation where the camera is revealed never happens, here is a screenshot: If I press cancel and present the UIImagePickerController again, the

After displaying and dismissing the Modal View Controller UIImagePickerController my Cocos2d iPhone app doesn't see multiple touches anymore

一曲冷凌霜 提交于 2019-12-06 07:23:05
I have an app where I display the photo chooser (UIImagePickerController) but after the user dismisses it only single touches are working. And I think I know the root of the issue, but I don't know how to solve it... Before I show the modal dialog the stack during a touch is as follows: ... #3 0x00074de0 in -[EAGLView touchesBegan:withEvent:] at EAGLView.m:289 #4 0x30910f33 in -[UIWindow _sendTouchesForEvent:] ... But after showing and then removing the modal dialog the stack has these two mysterious forwardMethod2 calls: ... #3 0x00074de0 in -[EAGLView touchesBegan:withEvent:] at EAGLView.m

ios5 “The operation could not be conpleted” when UIImagePickerController pick a 3gp file, and the whole UI freezed?

[亡魂溺海] 提交于 2019-12-06 06:31:51
问题 Normal video file “choose” and "compressing videos", enter the imagePickerController:didFinishPickingMediaWithInof callback. But from "camera roll" pick one 3gp file, occur “The operation could not be completed”, and freezing, don't response to any input action. In the end, I am forced to close my app. 回答1: This is due to selection of bad video. I got RID with the help of below code. -(void)navigationController:(UINavigationController *)navigationController willShowViewController:(nonnull