开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜