UISearchBar issue with UIsearchBarBackground - ios

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?

Related

UISearchbar unable to remove text border

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?

How do I remove the shadows on the top and bottom of UITableView?

I am using UIVisualEffectsView (With Vibrancy) through the IB. I cant seem to get rid of these shadows.
Update: Those aren't shadows. When a part of the cell becomes invisble, the invisible part is blurred (hence, black) and not the previous content
I have no code related to shadows
I have disabled tableview bounce
I have tried to set the layer shadowOpacity to 0 in all tableviewcell subviews
Please tell me if I need to provide more information to clarify my doubt.
Thanks a ton!
Solved.
I moved my tableview under the navigation bar and tab bar and then set them to translucent. Now the shadow(like) thing isnt visible.

Remove UISearchDisplayController translucent overlay prior to search

I'm working with a situation similar to the screenshot below (taken from another question asked about the gap at the top) .
I know how to make the UISearchDisplayController's tableView show up in whatever frame someone wanted, and that's great, but now I'm dealing with this black translucent overlay that I cannot get to move.
No amount of changing any frame for a tableView in any order is fixing it. The only thing that fixes it is changing EdgesForExtendedLayout property for the parent controller, and this is not an option given the way everything else on the page and application is displayed.
So, how can I remove or shift the translucent overlay to whatever Y position I want?

UISearchDisplayController - can see content scrolling behind it

I've got a UISearchDisplayController which displays search results in a UITableView that's right below it.
Everything works ok, I'm able to populate the tableview on the UISearchDisplayController, but when I scroll the tableview, the contents of the tableview are shown scrolling up behind the UISearchBar under the status bar of the device.
Has anyone got any experience of how to prevent this from being shown? All of my other view controllers I'm setting the navigation bar to have a specific colour, but on this search controller it doesn't take effect.
This is a known problem if you are using the UISearchDisplayController in a uipopover
I have the same problem and a lot of solutions provided by others do not work. I am actually quiet close to nailing it now. It is all about doing a notification to handle the keyboard hide and setting up the search results tableview content size

UIPopoverController passthroughViews ignoring Z-index and hierarchy?

With iOS7 tables has extended edges that lies under navigation bar, tabbar, etc. When I presenting UIPopoverController from one of cells of that table and set that table in the passthroughViews, it causes possible to tap on the cell under navigation bar, toolbar, tabbar, whatever! Even if bars are upper than tableview.
When I confronted this with UISearchBar, I've set up passthroughViews like that
#[self.searchBar, self.tableView]
(no matter that searchbar is in tableHeaderView) and everything was working fine (I thought). But now I know it's definitely an unexpected behaviour, possibly a bug in Cocoa Touch.
Have anyone solved this?

Resources