Saturday, December 21, 2013

[View contains a sub-view of how to set up a translucent? ?

There is a view, which has a sub-view, and now I want this view becomes translucent, but it's the same sub-view of transparency, is there a way?

I set up the view of the alpha value of 0.5, but the view and the child view has changed translucent, even if I handle re-view of the alpha set to 1.0 does not work ....
.
Reply:
Found ..
UIColor * color = [UIColor colorWithRed: 0 green: 0 blue: 0 alpha: 0.5];
[View setBackgroundColor: color];
Reply:
1, does not move the main view, set its layer transparency
2, the relationship between the set the same level view

No comments:

Post a Comment