ios - Window coordinates changing when alertview is visible while switching rootviewcontroller -
I am facing window coordinates as a new UINavigationController
as windows Is rootViewController
. That's why I have created a simple sample project that presents it again.
I launch the app with the initial action ViewController
with the following action button
- (IBAction) buttonTap: (ID) sender {[[[UILartview Alok] initWithTitle: @ "" Message: @ "New VC in 3 Seconds" Representative: Cancel CancelTintital: @ "OK" Other Button Titles: Zero] Show]; [Selector to self: @sillector (delay call) with object: after zero: 3];
}
- (zero) delay call {newview controller * NVC = [[newview controller alloc] initWithNibName: @ "newview controller" bundle: zero]; UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController: nvc]; [[UIApplication ShareApp] .keyWindow setRootViewController: nav];
}
The new viewer is in landscape mode. But comes down as a screen shot if any
UIAlertView
is shown before the change of therootViewController
window and has not been dismissed.If I ' Show alerts view or dismiss the code> Root ViewController by changing the new
ViewController
to correctalertview
.Anything can be done to prevent this: changing the
rootview controller
and showingalert view
we are part of a larger app that we make We are unknowingly we can not change it. So this flow will have to get some solution.
Comments
Post a Comment