uiimagepickercontroller

Range slider's touch (box) of video trimmer “off”

…衆ロ難τιáo~ 提交于 2019-12-04 22:28:54
I am using FDTake (the pod wont be too important for this question but still) to select videos from Photos which works fine. However, I would also like to be able to edit videos and limit their length to about 12 seconds. To do so I looked at the code of the pod and changed line 271 to self.imagePicker.allowsEditing = true which already causes the problem I haven't been able to solve so far: The left slider's touch (box) is “off”. Since that's a rather vague description I uploaded a video and you can find it right here . Unfortunately, I have absolutely no idea what engenders the problem and

How to respond to UIImagePickerController Generated UIAlertView

别来无恙 提交于 2019-12-04 22:02:22
I am using UIImagePickerController to capture video from my app and i have set video maximum duration to 30 seconds. When that 30 seconds limit is reached. I get an alert with a message "maximum video recording limit reached" produced by UIImagePickerController and it stops capturing video. What I want is that I want to respond to that alert that is generated automatically when 30 seconds limit is reached. I want to perform some action when "OK" button of that alert is pressed. I have implemented all the delegate methods of UIAlertView but it does come in any method when I press OK button.

Asset Library issue in iOS - 5

被刻印的时光 ゝ 提交于 2019-12-04 21:42:04
i am using asset library for getting image from url , my code is ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset){ ALAssetRepresentation *rep = [myasset defaultRepresentation]; CGImageRef iref = [rep fullResolutionImage]; UIImage *largeimage; if (iref) { largeimage = [UIImage imageWithCGImage:iref]; } [self customeButtonCreated:self]; NSData* thumbImageData = [[NSData alloc] initWithContentsOfFile:imagePath]; btn1.frame = CGRectMake(x, y, WIDTH, HEIGHT); [btn1 setTag:tag]; //[media_id addObject:[allKey objectAtIndex:0]]; [btnURl addObject:imagePath]; UIImage *tempImage =

Change UIImagePicker Navigation Bar style to blue

﹥>﹥吖頭↗ 提交于 2019-12-04 21:14:09
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 = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker.navigationBar.barStyle =

cameraOverlayView prevents editing with allowsEditing

≡放荡痞女 提交于 2019-12-04 20:45:31
问题 Editing a photo after it's been taken (moving and scaling it) works fine in my app with this line: [imagePicker setAllowsEditing:YES]; But if I also use a cameraOverlayView, the editing mode doesn't work anymore. The screen comes up, but pan and pinch gestures don't make anything happen. I'm using your average image picker controller: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; And I add a camera overlay view, created from a custom view controller's view:

Image became horizontal after successfully uploaded on server using Http Post

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 20:31:28
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:@"---------------------------14737809831466499882746641449"]; NSString *contentType = [NSString stringWithFormat

Getting image from UIImagePickerController

↘锁芯ラ 提交于 2019-12-04 20:19:04
问题 I want to get the image frm imagepickercontroller .But my code doesn't have any effect Here is the code.. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissModalViewControllerAnimated:YES]; imageview.image = [UIImage imageNamed:[info objectForKey:@"UIImagePickerControllerOriginalImage"]]; 回答1: You can try this code to access an Image returned from the picker - (void)imagePickerController:(UIImagePickerController

UIImagepickerController [takepicture] modal view disappears no delegate callback

断了今生、忘了曾经 提交于 2019-12-04 19:39:59
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 calls the master and this triggers the take picture, then i hear the shutter sound and the iris closes,

How to pick the image name and image from iPhone photo library in iOS

偶尔善良 提交于 2019-12-04 18:57:28
I'm doing a pick a images from iPhone photo library or in other way from camera roll. I've done that without any problem. But I need to retrieve the picking the image name from the library. but I cant able to pick the image name from gallery. My requirement is I want to pick the image and image name from photo gallery and send the chat wall. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissViewControllerAnimated:YES completion:nil]; UIImage *image =[[UIImage alloc] init]; image =[info objectForKey:@

Image not returned by didFinishPickingMediaWithInfo:

怎甘沉沦 提交于 2019-12-04 18:50:55
I'm basically trying to 'get' an image from the users photo library (or camera). The problem is, no image is returned when on iPad (Compatibility mode). Here is the code: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { NSLog(@"info: %@", info); } iPhone and iPhone simulator log (Original image exists): info: { UIImagePickerControllerMediaType = "public.image"; UIImagePickerControllerOriginalImage = "<UIImage: 0x6b6b4e0>"; UIImagePickerControllerReferenceURL = "assets-library://asset/asset.JPG?id=39D9190B-064F-4C80-9B93