Hi all,
I'm trying to add a Search bar to my UITableView. I followed this tutorial: http://clingingtoideas.blogspot.com/2010/02/uitableview-how-to-part-2-search.html.
I'm getting this error if I type a letter in the search box: Rooster(10787,0xa05ed4e0) malloc: *** error for object 0x3b5f160: double free
*** set a breakpoint in malloc_...
Whenever a user begins editing a UISearchDisplayController's search bar, the search controller becomes active and hides the view's navigation bar while presenting the search table view. Is it possible to prevent a UISearchDisplayController from hiding the navigation bar without reimplementing it?
...
I am having an odd problem when searching a UITableView using a UISearchDisplayController. The UITableViewController is a subclass of another UITableViewController with a working didSelectRowAtIndexPath method. Without searching the controller handles selections fine, sending the superclass a didSelectRowAtIndexPath call, but if I select...
I've been following Apple's TableSearch code example, but it's not working for me and I think I'm doing everything the same way they did it. The method below should be fired whenever the user types anything into the search box, but it never gets fired for me, just on the sample app.
My header file has this implementation:
@interface C...
This is really causing me fits. I see a lot of info on putting a UISearchBar in the top row of a UITableView -- but I am putting the UISearchBar into the Toolbar at the top of my screen (on the iPad). I cannot find ANYTHING regarding how to handle UISearchBar and UISearchDisplayController using a UIPopoverController on the iPad. Any mor...
Hello,
if this has been asked and answered please point me out to the right direction!
i m playing around with the iphoneCoreDataRecipes Apple sample code and trying to implement a UISearchBar.
what i have done is created a searchcontroller and populated it s contents with a master list.
here is the code:
// Customize the appearance ...
Hello
I currently have a UISearchBar (attached to a UISearchDisplayController), but I reduced the width of the search bar so I could display a custom button to its right when the search bar is not selected. The button is used to access other views.
However, when I select the search bar and then press cancel (or even perform a search) a...
hello there and sorry for the stupid question but i think i might be missing something simple here and can t figure it out myself.
i m trying to search a table view using the following code:
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
{
NSString...
I'm sort of new to any sort of multithreading and simply can't seem to get a simple search method working on a background thread properly. Everything seems to be in order with an NSAutoreleasePool and the UI being updated on the main thread. The app doesn't crash and does perform a search in the background but the search results yield th...
In my view controller, when I instantiate my UISearchDisplayController object, I set its various properties, including the background color of the searchResultsTableView property:
self.searchDisplayController = [[[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self] autorelease];
searchDisplayController....
Hi,
I'm using a UISearchDisplayController with a UISearchBar. I put this UISearchBar in my app using IB and I get :
Fine : when you start taping, the result popovercontroller appears magically (I didn't write anything on my own to make it appear !)
Then, when a row is clicked among the result, I want to dismiss the PopoverController...
I'm using UISearchResultsController to filter data from a fetchedResultsController. Here is the relevant code:
In RootVieweController.h:
@interface RootViewController : UITableViewController <NSFetchedResultsControllerDelegate, AdditionViewControllerDelegate, UISearchBarDelegate, UISearchDisplayDelegate> {
NSArray *filteredListCo...
Hi, I'm trying to set up a UISearchBarDelegate
My first attempt was to clear the search results when searchBarShouldEndEditing: was called, but I discovered that this gets called when scrolling through the search results, which is not a time to be getting rid of the array of them.
My next attempt is searchBarCancelButtonClicked: - but ...
I have integrated a UISearchDisplayController into my controller's xib. The basic functionality I'm going for is to have the search bar in the header of the table, and a button in the navigation bar that shows the search display.
What I'm stuck on: When the cancel is touched, I want to make the searchbar invisible (keep the table so ind...
Hi, i've got huge problem. I've copied some code from table search sample from Apple Resource pages.
here's the case:
#pragma mark -
#pragma mark Content Filtering
- (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope
{
[self.chatMessagesArrayCopyForSearching removeAllObjects]; // First clear the filtered a...
As attached in the picture.
I'm using a SearchDisplayController as well to facilitate searching.
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {
if(searching)
return nil;
else
return keys;
}
...
Hi,
I have seen Apple's example "TableSearch" that when touched its scope buttons come below the search bar.
http://developer.apple.com/iphone/library/samplecode/TableSearch/Introduction/Intro.html
But when I make my own it looks good at first but when I touch it looks like ugly, scope buttons and search bar are shown in the same line...
I have a UISearchDisplayController that is properly hooked up in IB.
delegate = Files Owner
searchBar = Search Bar
searchContentsController = Files Owner
searchResultsDataSource = Files Owner
searchResultsDelegate = Files Owner
When my UITableView calls numberofRowsInSection the correct number is returned.
However, my cells in cellFo...
How can I stop a UISearchDisplayController from updating as I type? numberOfRowsInSection gets called many times as the user types.
...
Hi,
Im trying to work with UISearchDisplay controller
the application is launching correctly. When i start typing in the UISearchbarController its showing the following exception and exiting the application.
The exception is as follows:
[BrowserViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x5...