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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -