An apple class that implements a text field control for text-based searches

learn more… | top users | synonyms

-2
votes
3answers
30 views

UISearchBar: search results hidden behind the searchbar

I have implemented an empty ViewController i.e SearchViewController with a SearchBar in it. Ans as i am searching from a web service, i want the search results to be displayed only when the user ...
0
votes
0answers
26 views

prepareForSegue segues to wrong index when UISearchBar active

I have a UISearchBar that works properly on a Master-Detail VC setup. The correct cells are displayed when the UISearchBar is active in the MasterViewController, but when I click the cell to segue, it ...
0
votes
0answers
10 views

ios appearanceWhenContainedIn only works once

In viewDidLoad, I create a searchBar, set it as the titleView inside the navigationBar, and call appearanceWhenContainedIn for the font size of the text inside the searchBar. When the view loads for ...
0
votes
1answer
8 views

Can't scroll a UISearchBar into view

Suddenly I couldn't scroll up to my search bar because it kept being pulled under the navigation bar.
0
votes
3answers
64 views

Get objectAtIndex from NSMutableDictionary

In my app, I'm working with UISearchBar where user will search from an NSMutableArray by searching with user name. Here is my method for searching user from NSMutableArray - (void)searchTableList { ...
0
votes
0answers
5 views

UISearchbar cancel button is not displaying in ipad layout

I'm working in x code version 6.1. I've just drag and drop the UISearchBar in my UIViewController...Now i just copied and paste this storyboard for iPad device..But for the iPhone device i can see the ...
0
votes
0answers
35 views

UISearchBarController “works”, but doesn't display on screen

I have a CoreData project written in Swift that I've added a UISearchController to. I set breakpoints to see if the search is working and I can print out a list of filteredObjects from lldb in the ...
0
votes
0answers
19 views

Search bar “disappears” after use

I am using a search bar that filters results from a table view that is in a container. Everything works fine when launching the view directly. However this view is called by a custom controller that ...
1
vote
1answer
18 views

UISearchController UISearchBar background

When adding a UISearchController to a UITableView header view, it is impossible to set the background behind the UISearchBar. The second picture is showing the view when dragging to the bottom. ...
0
votes
2answers
20 views

Search bar works correctly but crashes when I want to set table cell label

I am trying to implement a search bar with my table view. Both my table view and search bar are placed using storyboard. In my ViewDidLoad, I have: self.searchDisplayController.delegate = self; ...
0
votes
2answers
25 views

Cancel Button in SearchBar in TableViewController requires double tap

I have added a simple search bar in the header of a TableViewController and implemented the delegate. Everything is working. What is awfully weird is that the cancel is only called after the second ...
-1
votes
0answers
18 views

swift: app crashes after displaying UISearchBar

I am trying to implement searchBar in the navigation bar. The search bar appears on clicking the searchIcon (which is a UIBarButtonItem) but the app crashes the very next moment. Here is what i have ...
1
vote
0answers
44 views

Has anyone successfully added a UISearchBar to Core Data Project in Swift

As part of an assignment for a iOS development class, I'm tasked with adding a UISearchBar to a Core Data project written in Swift. I can't figure out how to get the search bar to compare the text to ...
0
votes
1answer
18 views

UISearchController makes the controller black

I am using UISearchController in iOS 8 with the following intializaiton in viewDidLoad of a view controller embedded in a tab controller _searchController = [[UISearchController alloc] ...
0
votes
0answers
7 views

Having search bar in navigation bar crashes if you rotate while swiping back

We use UISearchDisplayController's displaysSearchBarInNavigationBar feature (introduced in iOS 7) to be able to display the search bar in the navigation bar. However, we've seen this bug where if you ...
0
votes
2answers
32 views

Getting error while typing a text in search bar iOS8

I just started to learn iOS programming. I was working on search bar. I followed appcoda new tutorial http://www.appcoda.com/search-bar-tutorial-ios7/ . I'm stuck at some point. I'm trying to display ...
0
votes
1answer
29 views

UISearchController like Instagram Explore Tab

In the Instagram app, the explore feed comprises of a default view which is a UICollectionView. Once the search bar that is located in the navigation bar is tapped the "search display table view" is ...
3
votes
4answers
108 views

UISearchController Not Redisplaying Navigation Bar on Rotate

I have implemented the UISearchController and it is working great except... When I click on the Search Bar the Navigation Bar disappears nicely as expected. When I rotate the phone to landscape view ...
0
votes
0answers
23 views

how to use SPGooglePlacesAutocomplete in ios

i am using this objective-c wrapper to get the Google Places Autocomplete API result in search bar. i am able to use this sample .but when i copied all file in my project and want to use it i am ...
0
votes
0answers
37 views

UISearchBar controlling a dynamic URL in Xcode

I'm a newbie concerning the development of iOS applications, but I've some experience in programming C#. Anyway, I'm creating an app which is searching through a MySQL database by using JSON and PHP. ...
0
votes
3answers
28 views

Update TableView after changing an Object | UISeachBar

I programmed a Notebook app. I save all Object in an array and in the Core Data. Now I implemented a UISearchBarController . The results of the SearchBar are saved in a different array the ...
0
votes
1answer
93 views

Setting the placeholder text color / hiding the cancel Button using swift on iOS 8

I have a UiSearchbar within my Navigation Bar. The SearchBar style is minimal. I am on Ios 8, using a SearchController (No SearchDisplayController) and Swift. 1) I would like to set the placeholder ...
-1
votes
2answers
28 views

Swift - Detect text enter on UISearchBar

How do I detect when a user types into a UISearchBar? Should be really easy. Cannot find any help in the Class Reference. Is not this supposed to print? func searchBarShouldBeginEditing(searchBar: ...
-1
votes
2answers
51 views

Is a String part of another String in Swift

I programmed a Search Bar in Swift. Now I need to check if the searched Word is part of a Word in my Array Example : Search: hel - word in array: hello --> true Search: bs - word in ...
0
votes
1answer
89 views

How can i change UISearchBar search text color?

How can i change the text color of a UISearchBar using Swift (1.2)? Thanks!
0
votes
0answers
11 views

UISearchDisplayController - enable scroll while typing

Is there any default method to enable scrolling while using UISearchDisplayController? I have 2 controllers: AViewController, which implements UISearchDisplayController BViewController, which just ...
1
vote
0answers
93 views

How to change from UISearchDisplayController deprecated in iOS 8.0 to UISearchController

I used UISearchController since learning that UISearchDisplayController is deprecated. But now have a problem, integrating with SPGooglePlacesAutocomplete forked library by Chenyuan in GitHub. enter ...
0
votes
0answers
25 views

2 cancel buttons appear when enabling cancel button for uisearchbar

I've come across this issue in my own project and managed to replicate it in a new project. My project is a simple setup and easy to replicate if you wish. It is as follows: Added ...
0
votes
0answers
17 views

transparent UIStatusBar with UISearchController

i'm using the following code to display a UISearchBar searchController = UISearchController(searchResultsController: resultsTableViewController) searchController?.searchResultsUpdater = self ...
0
votes
1answer
60 views

Searching for addresses using MapKit on iOS

I have a UISearchBar where the user types in a string (e.g. an address) and it should suggestion some addresses. So let's say I am within Apple's Maps App, and I type in "New Yo" I'll get the city ...
0
votes
1answer
19 views

Can't set search as tableHeaderRow

Maybe this was already asked a million times & i really googled & tried to search stackoverflow but nothing seemed to help. I have a tableview with custom cell class & above it a search ...
1
vote
1answer
18 views

How to add accessibilitylabel for UISearchBar IOS

self.searchbar.isAccessibilityElement=YES; self.searchbar.accessibilityLabel=@"searchbar"; self.searchbar.accessibilityHint=@"searchbar"; self.searchbar.accessibilityElementsHidden=NO; The above ...
0
votes
1answer
40 views

Remove blank space under UITableView

I have regular UITableView with UISearchDisplayController in Navigation Controller. SizeToFit works on viewDidLoad normally, without any problems. But when i enter search a write some letters, it ...
0
votes
0answers
20 views

Odoo / OpenERP search bar error

http://s2.postimg.org/huujx6ju1/Capture.png When i click then odoo advanced search button on the search bar, it showed up like that. ( In the Link Above, not enough rep , sorry ) Can someone help me? ...
1
vote
0answers
17 views

UIStatusBar with UISearchController bug

I'm using UISearchController when the user select the input textfield the UIStatusBar is no longer transparent and in the back i can see UITableView contents i'm trying several solutions but nothing ...
-4
votes
0answers
19 views

how to add button to the right of the UISearchBar

I would like to add button to the right of the search bar with an image but i am not getting proper solutions in the net any one can help me out please.
0
votes
1answer
25 views

UISearch with tamil keys in ios

I have seen many code about searching a content, none of them not help. My situtation is, i have loaded a UITableView with tamil contents. Now i need to search with tamil keys & how to filter a ...
0
votes
0answers
21 views

SubView to have a suggestion list with UiSearchBar in iOs [Swift]

I have a map within my app with a UiSearchBar at the top. Similar to Apples Maps App, I would like to show a list of possible addresses if the users search for an address. Due to the fact, that I ...
0
votes
1answer
37 views

UISearchController disable cancel UIBarButtonItem

The Problem I am trying to use UISearchController to search for a destination on a map view. I want the UISearchBar to appear in the navigation bar, but I can't seem to make it do so without it ...
0
votes
1answer
27 views

UiSearchBar for Maps like address search using Swift

I have a map included in my app and I would like to integrate a search for addresses. I wonder how apple did the trick to show the map and then switch to the UiTableView (containing the search ...
0
votes
0answers
15 views

how to have padding “/” for date search in UISearchBar

I am unable to get the logic for having a "/" padded after a date and month is entered. How can i get a "/" padded after i enter dd and then "/" on entering MM I am using the method ...
0
votes
0answers
10 views

Cell height with search bar

I have a TableView which load data from my Url, the cells height is customise to 160. The Table has a Search Bar, when ever the table load the data, the cells hight changed to another height. I am ...
0
votes
1answer
52 views

Search Bar and Search Display Controller not showing results after search

I am currently trying to figure out why a Search Bar and Search Display Controller is not displaying results after the user provides input. 1.) I'm very confident that the delegates and everything is ...
0
votes
1answer
39 views

Filtering array of data where the filter text is array of strings using NSPredicate

My array is a collection of model object whose fields are name, address, arrTags. Here arrTags is a NSArray. I have to filter my array based on that arrTags values. eg. I have values like London, ...
0
votes
0answers
10 views

UISearchBar Display UserName and Image Profile From Parse

I have an app with UITableView and when someone uses the search bar to filter it display the users names and their image profile from parse, i have a problem to display the image profile. I tried this ...
1
vote
2answers
102 views

UISearchBar presented by UISearchController in table header view animates too far when active

I am using UISearchController to present a search bar inside the header view of a tableview: ... self.searchController.hidesNavigationBarDuringPresentation = NO; ...
0
votes
1answer
17 views

UISearchBar - internal UITextField height issue

I'm working on an app where I place a UISearchBar at the top of a UIViewController that contains a UITableViewController. The UISearchBar filters the contents of the UITableView. I've left things ...
1
vote
2answers
55 views

Typing in UISearchBar crashes my app

UPDATE 2 My app is crashing when presenting it modally after a user taps a button in ViewController1. In my storyboard, I have a standard present modally segue set to pop up the ...
0
votes
1answer
37 views

Search results not updating with autocompletion

I'm building an app in swift requiring to be able to search cities and I would like the search to work with autocompletion. So I started by creating a view controller in a xib containing a UISearch ...
1
vote
0answers
60 views

Custom UISearchController Animation

The Bottom Line Question: How do I override the default animation for the dismissal of a searchBar belonging to a UISearchController? Standard Search Controller Behavior: Okay so I am trying to ...