UITextfield in tableview not editable in iOS 13

Hi, I created an app which has a UITextField within a tableview. This worked fine in Xcode 10 and iOS 12, but it just stopped working in Xcode 11 and iOS 13. The textfield is no longer editable. Textfileds work elsewhere, and I have also checked that user interacxtion is enabled for the textview. Why would it just stop working now? Did iOS 13 bring a breaking change in that area.? I would like some help in this.

Answered by joelh in 424549022

I got it! Turns out the warning is in the console log: Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy.


Just set a symbolic breakpoint with UITableViewAlertForLayoutOutsideViewHierarchy and it will show the line of the problem in stack

Hi joelh,

Have you checked that your tableView and your Cell is enabled?


But it works under iOS 13.5

Look:


LG Torben

Hi, thanks for responding. User interaction is enabled for both the table view and the cell the uitextfield is in

Accepted Answer

I got it! Turns out the warning is in the console log: Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy.


Just set a symbolic breakpoint with UITableViewAlertForLayoutOutsideViewHierarchy and it will show the line of the problem in stack

UITextfield in tableview not editable in iOS 13
 
 
Q