Reputation: 3573
There is a tiny border on title label of UIBUtton
, which is not there for UILabels
.
[self.button setTitle:@"border" forState:UIControlStateNormal] ;
[self.button setTitleColor:[UIColor yellowColor] forState:UIControlStateNormal] ;
self.label.text = @"no borders!"
self.label.textColor = [UIColor yellowColor] ;
Because of this border, UIButton
s with light colors looks "dirty".
What is it and how to remove it?
Upvotes: 4
Views: 684
Reputation: 23053
These are title text border shadows of UIButton
.
By default it is looks like dark grey colour for button.
Click on Shadow Color and change it to Clear Color
You can done this by programatically also using this code:
[self.button setTitleShadowColor:[UIColor clearColor] forState:UIControlStateNormal] ;
Upvotes: 5