DispatchQueueSwift3.swift // Swift2.x dispatch_async(dispatch_get_main_queue()) { [ weak self ]() in if let weak Self = self { weak Self . tableView . reloadData() } } //Swift3.0 DispatchQueue . main . async { [ weak self ] in if weak Self = self { self . tableView . reloadData() } }