Search code examples
iosswiftuitabbaritem

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


Solution

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