IPad UIPopOverController - is it possible to have a transparent background?

Does anyone know if it is possible to have a transparent background for a UIPopOverController on an iPad?

I would like to place a translucent view inside the popover (therefore, the desire of the popover itself to have a transparent background).

I think this is impossible to do ... but I would like to know if I am wrong!

+3
source share
4 answers

I think that adjusting the transparency of a view in a popover will not work, but I never tried, and that could.

In any case, another cool way is to render the UIImage of the main UIView inside the popover controller.

, , , , popover ( CGRect) .

  • popover.
  • UIImage UIImageView . ( , popover .)
  • .

, UIPopoverController "".

, , , .

0

, ​​ 0,5, popover view

presentPopoverFromRect:(CGRect)rect inView:(UIView *)view permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections animated:(BOOL)animated;

popover, .

-1

, UIPopOverController . .

[[[myPopOverController contentViewController] view] setAlpha:0.25f];
-2

Usually the popover control will be transparent, we cannot change the popover control to a translucent look

-3
source

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


All Articles