How to reload the view when the application becomes active after suspension?

When a user changes NsuserDefaults in the settings on the iPhone and activates my application after pausing it, I want to restart the active view.

How can i do this?

+3
source share
2 answers

You can implement the applicationDidBecomeActive method : in the application deletion or register a notification UIApplicationDidBecomeActiveNotificationin any other object.

+7
source

- (void)applicationWillEnterForeground:(UIApplication*)application for the application delegate, invoked when exiting standby mode.

, , , , .

0

Source: https://habr.com/ru/post/1752865/


All Articles