I am using a DocumentBrowserViewController in Swift to present documents to a ViewController. In the ViewController I have a tableView to present some of the data in the document. When the ViewController is presented, it wants to initialize the tableView first. Settings of the tableView (ex: func TableView: nbrOfRowsInSection) are set by data in the document. Since the document is not read yet it fails.
I have the document.open in the ViewWillAppear which I was thinking would execute first.
Is there a way to change this ordering?