No index path for table cell being reused

前端 未结 13 1704
执念已碎
执念已碎 2021-02-04 05:18

This started to happen out of the blue. Any ideas: Code:

CUSTOMCLASSNAME (I have replaced the actual class name as it contains the name of the client.)

Initialis

13条回答
  •  长发绾君心
    2021-02-04 06:01

    I received the same error, but for a different reason.

    I had a custom UITableViewCell that set one of the UITextField's to becomeFirstResponder. The error occurred when more than one instance of this custom cell was being returned.

    I simply set only the first instance of the custom cell to becomeFirstResponder and it resolved the issue.

提交回复
热议问题