Questions tagged [uisearchbardisplaycontrol]
71 questions
53
votes
7 answers
Cursor not displaying in UISearchBar for our app
For the UISearchBars in our app, there's no cursor shown in the bar with focus when running under iOS 7. How do we make that show?
We are using the SDK 7, with a minimum target of 6. We do have the translucency off for the navigation bars, and set…

Jason Hocker
- 6,879
- 9
- 46
- 79
8
votes
5 answers
How to set UiSearchBar Search icon on the right side in swift
I am working on Swift.
As regular SearchBar By default its appearing like Following Pic(1).
But as per our design requirement I need to change it as Following Pic(2).
I tried using the following code I got like Following Pic(3)
**When I tried the…

iOS dev
- 2,254
- 6
- 33
- 56
6
votes
1 answer
displaysSearchBarInNavigationBar deprecated in iOS8
I'm trying to find an alternative to displaysSearchBarInNavigationBar for iOs8, is there anything I can use (in swift)?
I tried self.navigationItem.titleView = resultSearchController.searchBar but it doesn't do anything.
I don't understand how to…

Kalianey
- 2,738
- 6
- 25
- 43
6
votes
2 answers
Double tap UISearchBar with search delegate on iOS 7 causes UISearchBar to disappear
We have a search bar in the table header. When the user taps on it twice quickly on iOS 7, it disappears. Does anyone have any suggestions what we are doing wrong?

Jason Hocker
- 6,879
- 9
- 46
- 79
5
votes
3 answers
How to segue from a UISearchBarDisplayController result to a detailViewController
So, using storyboard you can create a segue from the UITableViewCell from the first tableViewController to a detailViewController.
Not too complicated, however, when a UISearchBarDisplayController is introduced into the storyboard mix, how can you…

M Jesse
- 2,213
- 6
- 31
- 37
5
votes
2 answers
Setting translucent to NO on UISearchBar
We have a UITableView with a searchbar added with the searchDisplayController.
We want to have translucency off throughout the app.
I have the translucency off for the navigation bar and other bars, but not the search bar when it uses the display…

Jason Hocker
- 6,879
- 9
- 46
- 79
4
votes
0 answers
Add SearchDisplayController Over mapKit to search Address book
I've been looking the web for this solution. Its exactly like the google maps application on the iphone, where as you search, it looks through the address book to find suggestions for what your looking for.
What i managed to do so far is set up a…

abhi
- 401
- 6
- 11
4
votes
1 answer
search bar cancel button push to initial view controller
I have been searching and haven't been able to make it work.
TableviewcontrollerA segues a TableviewcontrollerB with searchbar as firstresponder
When user taps cancel, I want to go back to TableviewcontrollerA
I have tried quite a few things in the…

William Falcon
- 9,813
- 14
- 67
- 110
3
votes
2 answers
UITableview header not shown again if scrolled up
I have UITableview Controller, who has search bar in header. When i scrolled up the table view and it bounce. But the search bar hides. when i scroll down then the search bar shown. can any one tell me how can i show the search bar again?
I have…

Muhammad Umair
- 583
- 11
- 32
3
votes
0 answers
UISearchBar on section header disappears after cancel on iOS7
I have a UITableViewController and I want a UISearchBar on the top so I use
viewForHeaderInSection: delegate method because when I scroll I don't want to hide the UISearchBar. The problem is (only iOS7) that when I press cancel button the…

ignaciohugog
- 334
- 2
- 10
3
votes
4 answers
Why my UISearchBar`s frame is changed by the UISearchDisplayController
I write UISearchBar in my TopBar.m like this:
_tempSearchBar =[[UISearchBar alloc]initWithFrame:CGRectMake(44, 0, 320 - 44, 43)];
_tempSearchBar.barStyle=UIBarStyleDefault;
_tempSearchBar.placeholder=@"搜索";
[self addSubview:_tempSearchBar];
the…

cloosen
- 993
- 7
- 17
2
votes
1 answer
Angular 4 Forms --> Search Results from Input
So I am having a bit of a problem. I have to create a search page for a travel agency. In this example, I'm booking a flight. I have no idea how to display each result based off the inputs of the form ahhhhh. I've been trying but I ran outta mental…

Eddie Taliaferro II
- 185
- 5
- 16
2
votes
2 answers
UISearchBar displaying multiple section headers in search results
I have an app that when someone uses the search bar to filter the objects in the UITableView there are two section headers that are displayed. One is stationary and the other moves with the search results. see two screen shots attached.
below I…

OscarTheGrouch
- 2,374
- 4
- 28
- 39
2
votes
1 answer
Search Display Controller error in UITableViewController in Swift
I have UITableViewController there is Search Bar and Search Display Controller. When I try typing something in the search and my code change data in array arrayForSearchTable the application crushes. This array need for display results in table.…

Alexey Nakhimov
- 2,673
- 8
- 34
- 49
2
votes
0 answers
UISearchDisplayController and UISearchBar in iOS7
I'm trying to create a UITableViewController in a storyboard with a UISearchBar and UISearchDisplayController.
I also want to use the displaysSearchBarInNavigationBar property of the UISearchDisplayController.
However, no matter what I do it is…

Fogmeister
- 76,236
- 42
- 207
- 306