Tell me, please, is it possible to block the change of screen orientation (or make only portrait) when creating a UIViewController in the following way:
promowindow = [[UIApplication sharedApplication] keyWindow]; promocont = [[UIViewController alloc] init]; [promowindow setRootViewController:promocont]; Access to the settings of the main controller is not.