ios - How to use one date picker for two textfield? -


i follow link have 2 textfield

how use 2 textfield.my code here date1 , date2 textfields.here when select date textfield1 , textfield2 , textfield1 takes value textfield2

you need set tag on every text field , identify in donbuttonpressed method , set text according tag.

otherwise

- (void)textfielddidendediting:(uitextfield *)textfield {    if([textfield isequal:date1])    {          date1.text=@"yourdate";    }    else    {          date2.text=@"yourdate";    } } 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -