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 the rootViewController window and has not been dismissed. new vice president with wrong coordinates (should be in landscape mode)

If I ' Show alerts view or dismiss the code> Root ViewController by changing the new ViewController to correct alertview .

Anything can be done to prevent this: changing the rootview controller and showing alert 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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -