chris antonopoulos chris antonopoulos - 1 year ago 85
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 Source

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

UIApplicationDidEnterBackgroundNotification
UIApplicationWillEnterForegroundNotification