Alessio Crestani
Alessio Crestani

Reputation: 1612

how to remove border in iOS components

I've not understand why my components has this black pixel line - for example the UISearchBar on the screenshot. How to remove that? It's not tint.

enter image description here

EDIT:

the options of UISearchBar are:

enter image description here

the options of the Controller hosting the UISearchBar are:

enter image description here

Upvotes: 0

Views: 192

Answers (2)

Mehul Patel
Mehul Patel

Reputation: 23053

If you are using Xcode 6. Then go to Storyboard select UISearchBar and click on Show the Attribute Inspector

In that change Search Style >> Default to Minimal.

enter image description here

Upvotes: 2

Lucas Huang
Lucas Huang

Reputation: 4016

Normally, that's just the background color. Try to change the background color of the view. If you are handling that in the UIViewController Then, use the following codes to change the background color to transparent:

[self.view setBackgroundColor:[UIColor clearColor]];

Upvotes: 0

Related Questions