Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove underline on UIButton in iOS 7

Any one know how to remove the UIButton underline that appears because of Accessibility?

(I know it's because the user turned on "Button Shapes")

enter image description here

enter image description here

How can I remove that programmatically, or by setting some property in Xcode?

like image 383
Mitul Bhadeshiya Avatar asked Apr 23 '14 13:04

Mitul Bhadeshiya


1 Answers

Set background image to the button.

[yourBtnHere setBackgroundImage:[[UIImage alloc] init] forState:UIControlStateNormal];
like image 108
user4291543 Avatar answered Sep 21 '22 19:09

user4291543



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!