uiimagepickercontroller

video trimming in uiimagepicker

 ̄綄美尐妖づ 提交于 2019-12-08 03:13:08
问题 I was able trim the video when i used the photo library source type. But when I use the camera source type trimmed video appears to be saved. but when i play the saved video it is not trimmed. Can any one pls help me with this? 回答1: It looks like you can't use uiimagepicker AND get the edited video. You have to use UIVideoEditorController. http://developer.apple.com/library/ios/#documentation/uikit/reference/UIVideoEditorController_ClassReference/Reference/Reference.html#//apple_ref/occ/cl

UiImagePickerController takePicture issues

我怕爱的太早我们不能终老 提交于 2019-12-08 02:27:17
问题 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];

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

六月ゝ 毕业季﹏ 提交于 2019-12-08 02:23:52
问题 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 =

UIImagePickerController camera not working swift

谁说胖子不能爱 提交于 2019-12-08 02:20:01
问题 I have an action sheet that has two options: one where you can choose an image from your library and one where you can take a photo from the camera. The photo library functions properly, but I can't seem to get the camera to work. Here is my code: let takePhoto = UIAlertAction(title: "Take photo", style: .Default, handler: { (alert: UIAlertAction!) -> Void in // present camera taker var cameraPicker = UIImagePickerController() cameraPicker.delegate = self cameraPicker.sourceType = .Camera

CIGaussianBlur changes imageOrientation sometime

安稳与你 提交于 2019-12-08 01:20:18
问题 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

Copy image from assets-library to an app folder

点点圈 提交于 2019-12-08 00:31:18
问题 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

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

你离开我真会死。 提交于 2019-12-08 00:13:43
问题 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

Hide UIImagePickerControllerSourceTypceCamera toolbar, but specific buttons?

偶尔善良 提交于 2019-12-07 21:09:56
问题 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

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

99封情书 提交于 2019-12-07 20:05:05
问题 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,

iphone image ALAsset problem

你说的曾经没有我的故事 提交于 2019-12-07 19:29:10
问题 First of all sorry for the crappy formatting. I dont know how to format the code here.I am having a problem with retrieving the image from the photo library. I have pasted my code Please help me. I am having this problem from many days. here, I am storing the image path in the database using the referenceURL. It is in the -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info NSURL *imageUrl = [info valueForKey