Hello. I am implementing a split view using SWReveal with UITableViewController as my master view and UIViewController as my Detail view. The detail view connects to a server every five seconds and downloads dynamic data which changes every time it connects. I want to display this data on my Master View. The problem is that the data does not get updated on the UITableViewController.
In my Detail View, I have this:
let tableMenuObj = IGAAcarsMenuTableVC()
self.tableMenuObj.refreshData()
And in my Master view (IGAAcarsMenuTableVC), I have this:
func refreshData()
{
self.arrayOfAcarsData = ["Latitude|" + appSingleton.currentLatitudeShared,
"Longitude|" + appSingleton.currentLongitudeShared,
"Heading (mag)|" + appSingleton.currentHeadingShared]
self.tableView.reloadData()
}
The data itself is being changed, I have checked that. But the table does not reload the data. Am I doing it wrong?
Thank you!