IOS alpha导致subView也透明

当要背景颜色透明的时候,alpha导致subView也透明的解决方法

1、 xib中的backgroundColor中选others 里面有个opacity,用这个设置透明程度,不用alpha

2、代码:backgroundColor = [uicolor colorwithRed:xx green:xx blue:xx alpha:xx];

posted @ 2015-06-05 17:27  暗夜追星  阅读(316)  评论(0编辑  收藏  举报