chris antonopoulos chris antonopoulos - 4 months ago 22
iOS Question

IOS Swift how reload viewcontroller when app come from background?

I want when user call app from background to reaload one function from viewcontroller?

Answer

You can register your controller for these notifications and reload your controller accordingly.

UIApplicationDidEnterBackgroundNotification
UIApplicationWillEnterForegroundNotification