2

I've got UICollectionViewCell with multiple textFields. Every single delegate is connected (once), UITextFields got single property (no duplicates).

Every single time I start editing UITextField, method textFieldShouldBeginEditing is being called multiple times for every UITextField in view.

Other views doesn't have this problem.

@Edit Also I've tried to make a test UICollectionViewCell with two UITextField, connected delegates and textFieldShouldBeginEditing. And situation I've got exactly the same result - every time I select UITextField it fires method for every single UITextField in this cell.

Piotr Gawłowski
  • 189
  • 1
  • 10

1 Answers1

1

When textField is requested to test that it can become first responder, it asks for it's delegate via 'textFieldShouldBeginEditing' that it can become first responder or not.

Also, when you reload tableview, change it to reloading single lines may solve the problem..

SNarula
  • 548
  • 3
  • 16