0

I have a UIButton that sits ontop and is a subview of my UITabBar. But the button is still a bit transparent and I can see the lines from the tab bar through it. My button is created as so:

_button = [UIButton buttonWithType:UIButtonTypeCustom];
[_button setTitle:@"+" forState:UIControlStateNormal];
[_button.titleLabel setFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:(46.0)]];
[_button setBackgroundColor:[UIColor yellowColor]];
[_button setTintColor:[UIColor regularColor]];
[_button setAlpha:1.0];

What's wrong?

cdub
  • 24,555
  • 57
  • 174
  • 303

2 Answers2

0

[_button setAlpha:1.0]; Play around with setAlpha Property

Saubar
  • 135
  • 11
0

I assume that your button is created in a storyboard. So if you try without the line "_button = [UIButton buttonWithType:UIButtonTypeCustom];" it should not be transparent...