UINavigationController push / pop bug on iOS 7.x when app is running in the background -
i have set uinavigationcontroller rootviewcontroller of mainwindow.
i push , pop viewcontrollers code (so pushes , pops not triggered user interaction).
when when applicaiton in foreground, everyhting works should.
but when when application running in background, not correct viewcontroller shown.
this issue reproducible on ios 7.x .
a sample project can found under link : https://www.dropbox.com/sh/pmxnpgtrjxwehs7/_l3nw4xllf
to reproduce issue, put app background , wait 12 second , return app foreground : when navigate using uinavigationbar's button, not navigationcontroller's rootview shown (as should) : background still green, , not yellow (the navigationcontroller's rootviewcontroller's background yellow).
when app in foreground, tapping on button label "aaaaa" same navigation when it's done, gui in correct state.
so in brief : works when app in foreground not work when app in background :
dispatch_after(dispatch_time(dispatch_time_now, (int64_t)(3 * nsec_per_sec)), dispatch_get_main_queue(), ^{ nslog(@"pushviewcontroller!"); [self pushviewcontroller:[[bviewcontroller alloc] init] animated:yes]; dispatch_after(dispatch_time(dispatch_time_now, (int64_t)(3 * nsec_per_sec)), dispatch_get_main_queue(), ^{ [self poptorootviewcontrolleranimated:yes]; dispatch_after(dispatch_time(dispatch_time_now, (int64_t)(3 * nsec_per_sec)), dispatch_get_main_queue(), ^{ [self pushviewcontroller:[[bviewcontroller alloc] init] animated:yes]; }); }); });
do know how issue solved?
thanks in advance!
i've found solution : achieve same navigation animation using code posted here : stackoverflow.com/questions/9480458/change-animation-transition . problem not reproducible using code!
Comments
Post a Comment