hello all, i have a uibutton to trigger iphone's camera to grab image and i have a uiimageView in same view to show captured image , but it not showing anything after capturing... any solution ?..
A:
here's my code:
- (IBAction)grabImage:(id)sender{
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsImageEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController: picker animated:YES];
[picker release];
}
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage : (UIImage *)image editingInfo:(NSDictionary *)editingInfo { cameraImageView.image = image; [picker dismissModalViewControllerAnimated:YES];
}
apple
2010-10-26 13:22:19
check the frame of the cameraImageView in your actual code.
Alin
2010-10-26 13:44:40
Ya now its working fine.. thanks a lot...
apple
2010-10-28 07:14:55