title: Row selection in UIPickerView
body: <p>I want to show the current date on selecting the row of UIDatePickerView on the label, My issue is when I opened my date picker it doesn't show anything on the label on selecting the row but when I move my date picker view, It started updating my label, I am not able to fix it. I want to display the date whenever I touch the date picker view row. I even added TouchUpInside row method also, still, it is not working</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>- (IBAction)btn_calendar_event:(id)sender {
      // ADD UIDatePicker and open it
      if (self.picker) {
          [self.toolbar removeFromSuperview];
          [self.picker removeFromSuperview];
      }
      [self hideKeyboard];
      self.picker = [[UIDatePicker alloc] init];
      self.picker.backgroundColor = [UIColor whiteColor];
      [self.picker setValue:[UIColor blackColor] forKey:@"textColor"];
  
      self.picker.autoresizingMask = UIViewAutoresizingFlexibleWidth;
      self.picker.datePickerMode = UIDatePickerModeDate;
    forControlEvents:UIControlEventValueChanged];
  </code></pre>
  
  <p>[self.picker addTarget:self action:@selector(dueDateChanged:)forControlEvents:UIControlEventTouchUpInside];
          [self.picker addTarget:self action:@selector(dueDateChanged:) forControlEvents:UIControlEventValueChanged];
       }</p>
  
  <pre><code>// dueDateChanged method 
  
  -(void) dueDateChanged:(UIDatePicker *)sender {
      NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init];
      [dateFormatter setDateFormat:@"YYYY-MM-dd"];
  
      NSLog(@"Picked the date %@", [dateFormatter stringFromDate:[sender date]]);
     _txtf_birthDate.text = [dateFormatter stringFromDate:[sender date]];
  
  }
  
  // Done button Action 
  
  -(void)onDoneButtonClick {
      [self dueDateChanged :  self.picker];
      [self.toolbar removeFromSuperview];
      [self.picker removeFromSuperview];
  }
  </code></pre>