I am currently developing a Swift application with a "LoginViewController". When the user is authentified, the application goes on a UITabBarController with 4 tabs.
In the fourth tab, I have to load an image from the internet in an UIImageView. I want that image to be loaded when I arrive on the first tab because there is a delay to load this image when I click on the fourth tab.
The code to load this image is in the viewDidLoad() of the fourth ViewController associated to my fourth tab. Is there any way to load this image before I go to the fourth tab ?
Maybe in the viewDidLoad of the first tab ? or in the viewDidLoad of the UITabBarViewController ?
I've already checked this link but can't make it work : How to load all views in UITabBarController?