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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -