Up vote 3 down vote favorite share g+ share fb share tw.
I have the problem with the select the image from UIImagePickerController in ipad in ios 5. Same code was run perfectly in ios 4 . So what is the problem?
Can any one help me how to use UIImagePickerController in ios 5? Is there any difference between ios 4 and ios 5 for UIImagePickerController? Below is the code for the issue.
-(IBAction)selectExitingPicture:(id)sender { if (popoverController isPopoverVisible) { popoverController dismissPopoverAnimated:YES; popoverController release; } else { if (UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypePhotoLibrary) { UIImagePickerController *imagePicker = UIImagePickerController alloc init; imagePicker. Delegate = self; imagePicker. SourceType = UIImagePickerControllerSourceTypePhotoLibrary; imagePicker.
MediaTypes = NSArray arrayWithObjects: (NSString *) kUTTypeImage, nil; imagePicker. AllowsEditing = NO; popoverController = UIPopoverController alloc initWithContentViewController:imagePicker; popoverController. Delegate = self; popoverController presentPopoverFromRect:CGRectMake(280, 700, 320, 400) inView:self.
View permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES; imagePicker release; } } } -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { popoverController dismissPopoverAnimated:true; NSString *mediaType = info objectForKey:UIImagePickerControllerMediaType; self dismissModalViewControllerAnimated:YES; if (mediaType isEqualToString:(NSString *)kUTTypeImage) { UIImage *image = info objectForKey:UIImagePickerControllerOriginalImage; selectedImageView. Image = image; } else if (mediaType isEqualToString:(NSString *)kUTTypeMovie) { // Code here to support video if enabled } } After selecting the image from UIImagePicker in the imagePickerController:didFinishPickingMediaWithInfo method I received the image reference 0*0 Thanks iphone objective-c ios ios5 uiimagepickercontroller link|improve this question edited Nov 22 '11 at 10:43Maverick1st16812 asked Jul 15 '11 at 9:20darshan13312 80% accept rate.
You'd need to ask this under Apple's Dev Forum's not here since its NDA – Sum Jul 20 '11 at 7:39.
Try this -(IBAction)buttonpressed{ UIImagePickerController *anImagePickerController = UIImagePickerController new; anImagePickerController. Delegate = self; anImagePickerController. SourceType = UIImagePickerControllerSourceTypeCamera; UIImageView *anImageView = UIImageView alloc initWithImage:UIImage imageNamed:@"overlay_320x427.
Png"; anImageView. Frame = CGRectMake(0, 1, 320, 427); anImageView. Hidden = YES; anImagePickerController.
CameraOverlayView = anImageView; self presentModalViewController:anImagePickerController animated:YES; anImagePickerController release; NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(timerFireMethod:) userInfo:anImageView repeats:NO; anImageView release; } - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)info { /* Do something here*/ self dismissModalViewControllerAnimated:YES; } - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker { self dismissModalViewControllerAnimated:YES; }.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.