Если вы хотите, чтобы отобразить изображение где-то, вы можете использовать:
-(void)chooseImageFromCamera {
if(![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) return;
UIImagePickerController* picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.delegate = self;
picker.allowsEditing = YES;
picker.wantsFullScreenLayout = YES;
[currentItem retain];
[self presentModalViewController:picker animated:YES];
}
#pragma mark Image Picker Delegates
-(void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingImage:(UIImage *)image
editingInfo:(NSDictionary *)editingInfo {
NSData *chosenImage = UIImageJPEGRepresentation(image, 1.0);
/* change this to the path of a plist file */
NSString *current = [NSString stringWithFormat:@"PlistFile.plist"];
NSMutableDictionary* plistDict = [[[NSMutableDictionary alloc] initWithContentsOfFile:current] autorelease];
// Do something with the image here.
[plistDict setObject:chosenImage forKey:@"Photo"];
[plistDict writeToFile:current atomically:YES];
[self dismissModalViewControllerAnimated:YES];
}
-(void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
[[picker parentViewController] dismissModalViewControllerAnimated:YES];
}