I use a SCTableViewController in a UIPopoverController.
Everything works fine, but when the popover is not shown and I simulate a memory warning in the iPad Simulator, the next time the popover is shown, the tableview is empty.
To find out what happens, I added NSLog-Statements in viewDidAppear:
NSLog(@"%@", self.tableView);
This is what shows up in the console:
<UITableView: 0x6047a00>
Received simulated memory warning.
<UITableView: 0xb81da00>
As you see, the address of self.tableView changes between calls. So the tableViewModel (and thus the table view delegate and datasource) is still connected to the old tableview while the table view controller has created a new tableview.
Unfortunetely the modeledTableView property of SCTableViewModel is read-only but it should really be set to the new table view that is created after a memory warning.
I hope this makes sense to you.
Thanks,
Alexander