在UIView过渡动画时UIView背后的黑色

时间:2016-05-20 11:26:24

标签: ios swift animation uiviewanimationtransition

我正在使用以下块进行过渡动画。但我发现在翻转动画期间,UIView下方会出现黑色图层。有没有办法为该图层设置自定义颜色。

export declare const fileContent: string;
export default fileContent;

2 个答案:

答案 0 :(得分:0)

尝试更改边框宽度和颜色

self.yourView.layer.borderWidth = 0
self.yourView.layer.borderColor = UIColor.clearColor().CGColor

答案 1 :(得分:0)

您需要更改实际ViewController的背景颜色,它包含所有这些视图。

相关问题