Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the extra black line beneath UISearchBar?

After setting the tint of a UISearchBar to White:

enter image description here

There is an extra black line between the search box and the table:

enter image description here

How can I remove the black line?

like image 927
ohho Avatar asked Dec 30 '11 05:12

ohho


1 Answers

Just a tweak...

searchBar.layer.borderWidth = 1;
searchBar.layer.borderColor = [[UIColor whiteColor] CGColor];
like image 122
Legolas Avatar answered Nov 30 '22 15:11

Legolas