UIPageViewController not reloading current viewController after foreground app

Paul Lafytskyi

https://imgur.com/6rGCCe5 While swiping on pageViewController I press lock or home button. After foreground app in

- (void)applicationDidBecomeActive:(UIApplication *)application

I sent notification to pageViewController, so I cant get current controller, PageViewController not reload his controllers.

ContentViewController *viewController = [self.viewControllers firstObject]; 

return wrong object. Any delegates method don't call after foreground. How can I get the current controller?

dopcn

Current viewcontroller might not be the lastObject why not 'reload'(don't know what does this mean?) all viewcontrollers in self.viewControllers

Or when pageViewController get the notification setViewControllers again

- (void)setViewControllers:(NSArray *)viewControllers
                 direction:(UIPageViewControllerNavigationDirection)direction
                  animated:(BOOL)animated
                completion:(void (^)(BOOL finished))completion

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

UIPageViewController viewController disappears after transition

Swift - Stop TableView Reloading After Dismissing A ViewController

Reloading a ViewController

How to detect current foreground app when foreground service is running

How to load the current viewcontroller when application comes to foreground

Reloading whole ViewController after custom Button pressed in TableView

How to present Lock_ViewController when app is entering foreground in SWIFT?

How to show alert in every ViewController when app is active (foreground)?

App crash after reloading url inside webview

Facebook request after app enter foreground

Firebase | no index.html found in the current directory after reloading

App crashes after reloading tableview data after NSPredicate

how to detect app is now foreground after minimizing the app?

Hiding the current page of a UIPageViewController

Detect current page of UIPageViewController

Why is my React app completely reloading after a state change?

after call summary app is not returning foreground in iOS 7

Foreground app killed by OS after ~ 1 hour in standby mode

How to restart foreground service after app updating in Android Oreo?

android studio app crashes after starting foreground service

form is not reloading current page

Unable to navigate to specific viewController after clicking push notification in foreground using FCM below iOS 10

Why `audioPlayerDidFinishPlaying` is still alive after dismiss the current viewController it belongs to

Add UIPageViewController in present app

UIPageViewController: return the current visible view

Reloading the page after redirect

Swift - UIPageViewController always repeats second ViewController

Bring android app in foreground after receiving respose from third party app in xamarin android

after handling foreground notification (FCM) flutter throws [core/no-app] No Firebase App '[DEFAULT]' has been created