Custom UISearchBar hides when is active iOS - uitableview

i am developing an app ios7, got a custom UISearchBar at top of a UITableView with an UISegmetedControl, the problem is when i start to search, searchBar goes left and hide, so is imposible to handle it, how can i make the UISearchBar stay on it's position??

Related

IQKeyboardManager - keeping the UINavigationBar sticky to the top

I'm using IQKeyboardManager in Swift to handle the keyboard in my app (it's a chat app and the UICollectionView and the UITextField should move up and down according to the keyboard's position). It's working great.
My only problem is that it moves the whole view up, including the UINavigationBar and that's why it looks very weird. I want the UINavigationBar to remain sticky on the top of the screen.
Any idea how can I do that?
Thank you

My UISearchbar & search display controller isn't working properly

This is the hierarchy of the controls
This is when i tap on searchbar textfield (everything is normal here)
But when i type, this is how the results are displayed. there is a gap between searchbar and table header where cells are visible.
And also, when i rotate while searching this happens to searchbar. Though xcode isn't allowing adding constraints from the autolayout menu on bottom.

ios11 Attach custom view below UISearchController UISearchBar that hides with the Searchbar

I had a UISearchBar with which i attached a custom view below which gave some buttons for filtering and sorting... now i want to use the ios11 UISearchControllerthat provides a searchbar which smoothly hides into the top NavigationBar. I looked around some and tested a few things but cant figure it out properly. The custom view should hide when scrolling up as well.
Any tips or anything i can read up to get a hold on this? (I'm relatively new to ios development)

Is there any way to fix the position of a UISearchBar + UISearchDisplayController?

I have a ViewController nested inside a PageViewController which is also nested inside a NavigationViewController.
The thing is I have put a UISearchBar and UISearchDisplayController item on the center of my ViewController and for some reason, when I click on the search bar and the keyboard appears, the UISearchBar goes up to where the NavigationBar is. Also, when I click outside the UISearchBar, it dissapears with a fading effect.
Could someone explain to me what is going on? How can I fix the position of the UISearchBar so that it does not go up?
I tried a similar UISearchBar and UISearchDisplayController on an empty project with a single ViewController and the UISearchBar does not dissapear and does not move up. From this I believe that for some reason the UISearchBar moves up in the presence of a NavigationBar, which acts like a magnet.

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

Resources