I set a transparent image to a UISearchBar in order to show the background of the view behind it. For some reason it caused a strange truncated blue border to appear on the text field.
Here is how it looks:
Any idea from where did it come from? Any way of removing it?
Related
I'm currently building a collection view with a header, I've got all the pieces working, so I don't necessarily have a question/problem about code, header works fine and so do the cells. My question is about the header and when you drag it down, you can see the background color. Currently, I have my header's color set to Gray, and the background color of the controller is set to white, so when I drag the header down, I can see the white background.
My question is.. what code do I need to implement in order for the gray header to be continuously stuck to the top even as I drag the header down?
I'd like to figure how to implement this because I want to keep the spacing of my collection view cells white and not gray (If I were to change the background color to gray).
I am getting results from Google Places Autocomplete and showing them in the collectionView. Default cell color is white, and background is light blue and as I press the searchBar they become gray. Is there a way to change it?
I have a dark background in my application. When the keyboard comes on screen it creates a stroke around the view that contains the UITextField or UITextView. Is this a bug? Does anyone know of a workaround?
In the picture attached you'll see a white stroke going around the view under the top bar.
I have strange issue with UISearchBar when I click on the textBox it gets animated and displayed incorrect. SearchBar is shifted down for 20px. I found that gray background is UISearchBarBackground.
I tried different approaches to remove it, but UISearchBarBackground is not exists in searchBar subviews.
Any suggestions how to fix this?
I have a custom TableViewRow with a subview for an image. The imageView is inside a container so I can display the image as a square. The container has a white background and the image may not fill the container view. I removed the image from the container to explain the problem better. Please see the images below.
As you can see, when the bottom row is selected the background of the white square disappears. In my case, when the image is inside the container, the white color that fills the square is removed and I have a square border with a smaller image inside it.
Has anyone dealt with this before?
Thanks.
This is normal behavior for any table -- it changes the background color of all the subviews so it can show the selection highlight.
See this question for more details and work-arounds.
my suggestion here is to handle the selectionHighlighting yourself so you can manage how the views are rendered.
Once a row is selected, create you own method to set the background color of the individual views to give the visual experience you want. Remember to set the tableView so there is not highlighting on selection