I'm trying this
[timePicker addTarget:self action:@selector(timeValueChanged:self.pickupTimeTextField datePicker:self.timePicker) forControlEvents:UIControlEventValueChanged];
But it gives me a syntax error. How can I pass through UITextField and UIDatePicker to the method in the selector.