开发者

how can i set part of the view appear at its child view

开发者 https://www.devze.com 2023-02-09 20:54 出处:网络
On the child view, I set the backgroundColor with a picture which have some transparent part. [viewDown setBackgroundColor:[[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@\"background_down

On the child view, I set the backgroundColor with a picture which have some transparent part.

[viewDown setBackgroundColor:[[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background_down.png"]]];

The transparent part don't have the parent view's background, but the black color instea开发者_如何学God.

How can i do for this.

Thanks.


Set the opaque property to NO.

viewDown.opaque = NO;
0

精彩评论

暂无评论...
验证码 换一张
取 消