سؤال

I have a UITableView which have custom cells with UITextFields in them. My UITableView is defined on my MainViewController, while my cells are defined in the CustomCellclass. Each time I press a button, a new cell is created. I am having trouble making my cell's UITextField resign first responder, since cells are dynamically added and defined in a different class than the main controller. How do I do that? Thanks a lot!

هل كانت مفيدة؟

المحلول

Tell the UITableView to endEditing:.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top