我有UIView很多子视图(UILabel,UITextView等).
如果设置alpha 0.6到主视图所有子视图都采用此alpha.
如何分别设置主视图的alpha?
the*_*wan 15
[view setBackgroundColor:[[UIColor clearColor] colorWithAlphaComponent:0.5]];
//try this.. dont try to set alpha of UIView and also your subviews will not affect
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8962 次 |
| 最近记录: |