I'm trying to create a simple modal dialog on an iPad, either in small (UIModalPresentationFormSheet) or large (UIModalPresentationPageSheet) settings, but they go full screen (with a title) no matter what I do.
The modal UIViewController was created in an interface constructor, where I cannot specify a size for it. Specifying a smaller size for the UIView contained in the UIViewController has no effect.
What am I doing wrong? What could affect this issue? Could there be a time at which I set modalPresentationStyle? I tried using the UINavigationController without it, but I get the same result.
. , UIModalPresentationPageSheet, . UIViewController shouldAutorotateToInterfaceOrientation, , , .
toAutorotateToInterfaceOrientation UIViewController, YES, , am , ( ) , .
modalPresentationStyle ViewController presentModalViewController:animated.
modalPresentationStyle
presentModalViewController:animated
myViewController = // create your new controller if needed myViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; myViewController.modalPresentationStyle = UIModalPresentationFormSheet; // "self" is the parent ViewController [self presentModalViewController:myViewController animated:YES]
Source: https://habr.com/ru/post/1785024/More articles:pack / unpack - litle endian - 64bit - question - perlКаково главное преимущество создания абстрактного класса - javaBrowse Tracks - c #asp.NET 2.0 Website cannot access classes in App_Code - c #PHP SimpleXML-> addChild - нежелательный пустой атрибут пространства имен - phpPossible race condition using WPF ItemsCollection.ItemContainerGenerator - c #Blending the business logic of stored procedures and ORM - .netPyAudio is trying to use JACK - pythonJSF vs plain JSP + Beans? - java-eeSQL Server 2000 - How to rotate join results in final query results? - sql-serverAll Articles