objective c - TextField on Custom Cells -


i using custom cell inside tableview. in custom cell, there label , textfield....this custom cell being reused display ten items. i want open datepicker on 1 of cell's text field not able understand how work can achieved?

please set text field tag , delegate in cellforrowatindexpath method... like..

cell.yourtextfieldname.tag = 1000; cell.yourtextfieldname.delegate = self; 

in .h file add uitextfielddelegate

then in textfieldshouldbeginediting delegate can picker.

-(bool)textfieldshouldbeginediting:(uitextfield *)textfield{      nsinteger txtfldtag = textfield.tag;     if(txtfldtag == 1000){ //write method show picker. return no; } 

Comments

Popular posts from this blog

c++ - CPP, 'X' button listener -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -

shared memory - gstreamer shmsrc and shmsink with h264 data -