ILTranslucentView
ILTranslucentView copied to clipboard
Background become solid when applying translucentTintColor
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; }
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.