Questions tagged [uisearchbardisplaycontrol]

71 questions
2
votes
1 answer

Preloaded results on UISearch display controller

I need to implement search history. so what i want to do is display the history in the search display controller when no text entered yet. I implemented this: -(void)searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller{ …
Dima
  • 8,586
  • 4
  • 28
  • 57
2
votes
1 answer

UISearchBar height reverting to custom view's height

I have a custom view header on a Table View Controller, and within that I have a couple labels and a UISearchBar. This issue is when I cancel out of the Search Display Controller, the UISearchBar animates back into it's origin, but upon finish it…
barrett
  • 327
  • 1
  • 9
1
vote
0 answers

Reloading the search table view controller

I have a table view with a search bar. When I put some text in the search bar & search data I display different rows under different sections. I have enabled UIGestureRecognizer on the section header to collapse the rows. Once user tap on the…
Abhinav
  • 37,684
  • 43
  • 191
  • 309
1
vote
1 answer

When using a SearchBarDisplay, how to change name of the cancel button

When setting a SearchBarDisplay, using IB or programmatically it gets a Cancel button right to the search window. The text on the button says "Cancel". How do I change text to another language. I know how to change text for a Done button at the…
Lars -
  • 501
  • 1
  • 10
  • 27
1
vote
1 answer

iOS ARC(?) steals my searchbar

I've made a iOS5-app quite similar to Apple's Contacts-app. A searchbar, a serachdisplaycontroller a tableview. When the user tap a cell a detailed view is presented (modal-style...) using segues. Everything works well, but... I've seen my app crash…
1
vote
3 answers

IPhone Keyboard hides UISeachBar

I have a search bar at the bottom of a view. The issue is whenever I type something in the keyboard, the search bar still remains at the bottom and I cannot view what I am typing. I would like to dynamically move it up whenever the keyboards pops up…
1
vote
2 answers

making the searchbar to stay on the top

Is it possible to change the iphone contact application kind of screen to have the searchbar staying on the top always ? if yes how ?
thndrkiss
  • 4,515
  • 8
  • 57
  • 96
1
vote
1 answer

iOS: UITableview header hide behind the view on scroll up

I have a custom segmented control in my tableview controller and a search bar in header of tableview. When i scroll up till last cell, tableview bounce back. But problem is: My search bar hides behind the segmented control and a white space appears…
1
vote
0 answers

How to use search bar controller with Core data generated tabel view - Swift?

I am new to iOS development and am in my second app with Swift. There are 2 views in my app. First View is an Array with fruits, that is randomly generate on a button click(by the user). Output of First View: [Apple, Orange, Banana, Pears] Now the…
1
vote
3 answers

center UIActivityIndicator when keyboard is active

I have a UITableView with a search bar and a search result display controller: [self.searchDisplayController.searchResultsTableView addSubview:searchIndicator]; searchIndicator.center = CGPointMake(self.view.frame.size.width / 2.0,…
1
vote
2 answers

how to show suggestion for UISearchBar search?

I am making a demo Weather app, and inside this i am using UISearchBar so can user entry city name, but i don't know how to display suggestion for that. For example, if user enters "lon" than there should be cities name suggesting start from "lon"…
Kumar
  • 1,882
  • 2
  • 27
  • 44
1
vote
0 answers

Searchview open on right button click

i am new in IOS 7 .can anybody help me how can i remove title and open UISearchBar in UINavigationBar when i click on right bar button.see image below. thank you in advance.
1
vote
1 answer

SearchBar, Custom Cell and setCell method: fatal error: unexpectedly found nil while unwrapping an Optional value

I implemented a searchBar and searchDisplayController on my tableView (in a MasterViewController). I have a CustomCell which works fine for displaying my tableView's cells but it doesn't work for my search tableView's cells and I dont' understand…
1
vote
2 answers

iOS - searching in a large NSArray is slow

I'm building a customised UITableViewController that shows all the contacts in the iPhone and behaves like the ABPeoplePickerNavigationController. Meaning it also supports searching the contacts. I'm doing this with the code here. I've implemented…
bobsacameno
  • 765
  • 3
  • 10
  • 25
1
vote
1 answer

Remove Search Bar from Navigation Bar

I am adding search bar on navigation bar, in iOS 7, using searchVC.displaysSearchBarInNavigationBar = YES;, which adds it on navigation bar as expected and works fine. Now, I want to add a subview on navigation bar. When subview is added, I want to…
Nitesh Borad
  • 4,583
  • 36
  • 51