title: Change the image of the correct button with an UIImagePickerController according to which button was pressed
body: <p>This is the issue:
  I want the user to tap a button and chose what image the button will represent. There is more than one button and the user can choose to pick a different image or the same one for each button he/she taps. <strong>How can I add an if structure in the void method to check which button has been pressed?</strong></p>
  
  <pre><code>@implementation ViewController
  @synthesize tegelEen,tegelTwee;  //tegelEen is a button an so is tegelTwee
  
  -(IBAction)Buttonclicked:(id)sender {
      picController = [[UIImagePickerController alloc]init];
      picController.delegate = self;
      picController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  
      [self presentViewController:picController animated:YES completion:nil];
  
  }
  
  
  
  -(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
  
      UIImage *btnImage = [info objectForKey:UIImagePickerControllerOriginalImage];
  
          //Now it changes both buttons but I want it to change only the one that was clicked.
          [tegelEen setImage:btnImage forState:UIControlStateNormal]; 
          [tegelTwee setImage:btnImage forState:UIControlStateNormal];
  
      [self dismissViewControllerAnimated:YES completion:nil];
  
  
  }
  </code></pre>
  
  <p>Thanks in advance, and yes I am quite new to this language.</p>