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

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -