The ipad page / formal form view is no longer transparent in 4.2.1

In my application, I use view and form controllers for modal viewing, for example:

quickTemplateViewer.modalPresentationStyle = UIModalPresentationPageSheet;
quickTemplateViewer.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[parent presentModalViewController:myView animated:YES];

I have an offset close button that hangs above the view in the upper left corner (the view is slightly smaller than the indicated size of the modal view), and it works well, since the background of the hte modal view is partially transparent.

I upgraded to 4.2.1 and suddenly instead of a translucent black background with a drop, I have a white background with rounded corners. Is there a new setting to turn it into transparent?

thank

+3
source share
1 answer

I searched all day for a solution on this, and eventually gave up and made my own decision.

, , currentModalViewController, backgroundColor, 80%, .

, currentModalViewController X Y. , UIModalPresentationPageSheet: , UIControl, .

, , , , . , - , .

-

, , . , URIiew animationTransition:

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[UIView setAnimationTransition:
   UIViewAnimationTransitionFlipFromLeft forView:anotherView cache:YES];
[mainContainer addSubview:modal.view];
[UIView commitAnimations];
+1

Source: https://habr.com/ru/post/1776827/


All Articles