How would I perform an action when a UITabBarItem is clicked in Swift?

I would like to update my UITableView when a Tab Bar Item is clicked. (I am open to any other better suggestions of how to do this besides when the Tab Bar Item is clicked). Thanks for any help :)

Tab Bar Item


I solved it by putting the update code in the viewDidAppear() method

Put your table view's update code in its view controller's viewWillAppear(), which should get called every time the tab is tapped.

Implement this delegate

optional func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController)

Need Your Help

Cant access website/images under /var/www/

html web-applications

About a year ago I placed some media and some web pages under my

How does Laravel 5.2 API compare to Lumen?

php performance api laravel lumen

I'm going to make an API that will have many requests (around 5000 each minute minimum, but could possibly be a lot more). I'm wondering what framework is better for that: Laravel 5.2 or Lumen?