UIImageWriteToSavedPhotosAlbum Problem
Posted
by Momeks
on Stack Overflow
See other posts from Stack Overflow
or by Momeks
Published on 2010-03-27T10:11:42Z
Indexed on
2010/03/27
10:13 UTC
Read the original article
Hit count: 331
Hi , i try to save a photo from camera after take a photo with a button .
here is my codes:
-(IBAction)takePic {
ipc = [[UIImagePickerController alloc]init];
ipc.delegate = self;
ipc.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:ipc animated:YES];
}
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
img.image = [info objectForKey:UIImagePickerControllerOriginalImage];
[[picker parentViewController]dismissModalViewControllerAnimated:YES];
[picker release];
}
but i dont know why doesnt save anything !
© Stack Overflow or respective owner