Getting Thread 1: EXC_BAD_ACCESS (code=2, address=0x16cebbfc0) error

I have have table view and then I have another Table View inside each cell of the first table view. Now whats happening is that the code enters in the "cellforrow" function of the first table view multiple times and then gives this error:

Thread 1: EXCBADACCESS (code=2, address=0x16cebbfc0)



Replies

I guess you have some flaw in your tableView(_:cellForRowAt:), which is causing infinite recursion, the stack overflows and eventually EXC_BAD_ACCESS.

If you want something more reliable than just a guess, please show all the relevant parts of your code.