title: Calling reload Sections from AppDelegate
body: <p>I am building an app to track BLE devices, and I have a delegate (in appDelegate) that updates the list of discovered devices over the bluetooth.</p>
  
  <p>I need to display this devices in a tableview, so when I discover a device I call a function in viewcontroller that refreshes the tableView.</p>
  
  <p>If I call this function from ViewController it works, but when I call it from AppDelegate it doesn't do anything, not even an error.</p>
  
  <p>AppDelegate:</p>
  
  <pre><code>//MARK: Discovered Device
  func DeviceDiscovered(_ macAddress: String!, withName name: String!, ofType type: Int, andSignalStrength strength: Int) {
          discoveredList["\(entry["time"]!)"] = entry
          ViewController().refresh()
      }
  }
  </code></pre>
  
  <p>ViewController:</p>
  
  <pre><code>func refresh() {
      self.tableView?.reloadSections(NSIndexSet(index: _sectionIndices.discoveredDevices.hashValue) as IndexSet, with: .none)
  }
  </code></pre>
  
  <p>I added a button in ViewController that simply calls refresh() and it works. Or at least it reloads the section, but the discoveredList dict doesn't update in ViewController either, but one problem at a time!</p>
  
  <p>Thanks for any help!</p>