i wont to use a datepickerview and a texfield.
i use it like thise, when i touch the textfiled the datepicker apears ( textfield.inputview=…) but i want when i select a date in the pickerview, it should appear in the textfield, how to do this please ??
thanks
For this you will need to implement delegate for UITextField and in its –
(BOOL)textFieldShouldBeginEditing:(UITextField *)textFieldwrite following code.// here you can write code for setting the center of datePicker.
return NO;
}
After this you will have to add action methods for picker change event in this method you will set
textFieldtext from picker value.thanks,