[英]Change the (background?) color behind a flipping view?
I have 2 views which transition into each other using the ... 我有2个视图,彼此之间使用...
[UIView setAnimationTransition:UIAnimationTransitionFlipFromLeft forView:self.view cache:YES]
[UIView setAnimationTransition:UIAnimationTransitionFlipFromLeft forView:self.view缓存:是]
My views both have a black background and when they flip over the colour underneath is white. 我的视图都具有黑色背景,并且当它们翻转下面的颜色时是白色。 I want to change this to something else.
我想将其更改为其他内容。 How do I do this?
我该怎么做呢? I have tried searching but I am not really sure which search terms to use.
我已经尝试搜索,但是我不确定使用哪个搜索词。
I think what you are looking for is changing the background color of your application window (which is visible between the flipside views). 我认为您正在寻找的是更改应用程序窗口的背景颜色(在背面视图之间可见)。 You can do this
你可以这样做
or in code with 或用
window.backgroundColor = [UIColor redColor]; window.backgroundColor = [UIColor redColor];
thanks! 谢谢! Very anti-intuitive.
非常违反直觉。 I'd think the superview's background color would show but I'd be wrong ;)
我以为超级视图的背景颜色会显示出来,但我会错了;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.