Contact Us

Use the form on the right to contact us.

You can edit the text in this area, and change where the contact form on the right submits to, by entering edit mode using the modes on the bottom right. 


Oak Ridge, TN, 37830
United States

Swift-Snips

Reload Data into Table View

Wade Cantley

Problem : Data updated in a details view, isn’t refreshing in the table view.
Solution : Need to refresh the data with the below script.

Create IBOutlet connected to the TableView that needs refreshing.
Put the reloadData method into the viewDidAppear function.


//1) 
    @IBOutlet weak var lendersTableView: UITableView!

//2) Note the reference to the IBOutlet
    //MARK: VC Delegate Methods
     override func viewDidAppear(animated: Bool) {
        // Reload data (for when the user comes back to this page from the details page.)
        dispatch_async(dispatch_get_main_queue(), { () -> Void in
            self.lendersTableView.reloadData()
        })
    }