I have
viewDidLoad
(of next tableView) being called before didSelectRowAtIndexPath
(of current tableView
).
I am using a 'singleton' to hold my model and up to now this has been working quite well. I am trying to pass on the row selected in the current table in didSelectRowAtIndexPath
to the destination tableview
(they are linked by a segue in storyboard) by setting by the variable in didSelectRowAtIndexPath
.
However the viewDidLoad
of the destination tableview
is called before I can set the row number. didSelectRowAtIndexPath
is called later but by then I have set up my data (wrongly) for the destination table.