iosg给父类view添加透明度子类也变得透明 用如下方式给父类view设置透明度不要使用alpha设置 self.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.5];