title: didFinishPickingMediaWithInfo for two images
body: <p>I have two image views named <code>obsPic1</code> and <code>obsPic2</code></p>
  
  <p>They receive an image from picker/camera. This works fine for one image but any more and the images are the same. How do I do this for more than one image?  Ive tried accessing the buttons sender tag but get undeclared identifier error, ive also tried using <code>if</code> statements.  Whats the correct way to do this?</p>
  
  <pre><code>- (IBAction)addObsPhotoBtnPresssed:(id)sender {
      if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
          LogCmd();
          UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
          imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
          imagePicker.delegate = self;
          imagePicker.allowsEditing = YES;
          [self.editController presentModalViewController:imagePicker animated:YES];
          //iPad
      }
      else {
          if (self.pop) {
              [self.pop dismissPopoverAnimated:YES];
          }
          UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
          imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
          imagePickerController.delegate = self;
          imagePickerController.allowsEditing = YES;
          self.pop=[[UIPopoverController alloc] initWithContentViewController:imagePickerController];
          [self.pop presentPopoverFromRect:((UIButton *)sender).bounds inView:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
  
      }
  }
  
  
  - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
  
      [picker dismissModalViewControllerAnimated:YES];
      UIImage *image = [info objectForKey:UIImagePickerControllerEditedImage];
      self.obsPic1.backgroundColor = [UIColor whiteColor];
      self.obsPic1.image = image;
      NSData *imageData = UIImagePNGRepresentation(image);
      NSString *path = [ICUtils pathForDocument:@"obsPic.png"];
      [imageData writeToFile:path atomically:NO];
  
  
      UIImage *image2 = [info objectForKey:UIImagePickerControllerEditedImage];
      self.obsPic2.backgroundColor = [UIColor whiteColor];
      self.obsPic2.image = image2;
      NSData *imageData2 = UIImagePNGRepresentation(image);
      NSString *path2 = [ICUtils pathForDocument:@"obsPic2.png"];
      [imageData2 writeToFile:path2 atomically:NO];
  
  
  }
  </code></pre>