ILTranslucentView icon indicating copy to clipboard operation
ILTranslucentView copied to clipboard

Background become solid when applying translucentTintColor

Open callzhang opened this issue 11 years ago • 1 comments

This is what I did:

  • (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. ILTranslucentView *translucentView = [[ILTranslucentView alloc] initWithFrame:CGRectMake(0, 0, 250, 150)]; [self.view addSubview:translucentView]; translucentView.translucentTintColor = [UIColor colorWithRed:0 green:1 blue:0 alpha:0.7]; translucentView.backgroundColor = [UIColor clearColor]; translucentView.translucentStyle = UIBarStyleDefault; }

callzhang avatar Apr 22 '14 20:04 callzhang

Yeah, I see. It seems that problem appears in new iOS 7.1... It is not solid color, it is just not so translucent any more :/. I will try to check if there is any other way, but for now you can try to use backgroundColor instead.

ivoleko avatar Apr 22 '14 21:04 ivoleko