The following are the delegate methods.
- (void) addPicture

id)sender {
if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
[[[UIAlertView alloc] initWithTitle

"JumpForward"
message

"Do you want to use an existing picture or take a picture with the camera?"
delegate:self
cancelButtonTitle:nil
otherButtonTitles

"Use Existing", @"Camera", nil] show];
}
[self retrievePicture:UIImagePickerControllerSourceTypePhotoLibrary];
}
- (void)alertView

UIAlertView *)alertView clickedButtonAtIndex

NSInteger)buttonIndex {
[self retrievePicture

buttonIndex == 0 ? UIImagePickerControllerSourceTypePhotoLibrary : UIImagePickerControllerSourceTypeCamera)];
}
- (void) retrievePicture

UIImagePickerControllerSourceType)type{
UIImagePickerController *picker = [[[UIImagePickerController alloc] init] autorelease];
[picker setDelegate:self];
[picker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
[self.navigationController presentModalViewController

icker animated:YES];
}
- (void)imagePickerController

UIImagePickerController *)picker didFinishPickingImage

UIImage *)image editingInfo

NSDictionary *)editingInfo {
[self.navigationController dismissModalViewControllerAnimated:YES];
Photo *newPhoto = [[[Photo alloc] init] autorelease];
[newPhoto setImage:image];
[newPhoto setCaption

"Another new photo!"];
[newPhoto setCreateDate:[NSDate date]];
[pictures insertObject:newPhoto atIndex:0];
[self.tableView reloadData];
}
Your .h file should be something similar to this:
@interface EditPicture : UITableViewController <UIAlertViewDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UITextFieldDelegate> {
NSMutableArray *pictures;
}
i hope this helps you to add photos.