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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -