It doesn't make sense. The UISearchBar is added in IB, I have it hooked to my viewController it is its delegate and I implement the two delegate methods. Before I even hit return to search it occurs. Here is the code
Code:
#pragma mark -
#pragma mark Search Delegate methods
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBarClicked {
return YES;
}
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBarClicked {
[searchBarClicked resignFirstResponder];
appContainerViewController.bookViewStateHolder.lastCountForSearch = 1;
[appContainerViewController.bookViewStateHolder setCurrentSearchString:searchBarClicked.text];
[appContainerViewController.bookViewStateHolder clearBooksForCurrentMode];
if (appContainerViewController.bookViewStateHolder.currentMode == SEARCH_MODE) {
appContainerViewController.bookViewStateHolder.lastCountForSearch = 1;
appContainerViewController.bookViewStateHolder.totalCountForSearch = 0;
[self doSearch];
}
}
Not sure why just clickingin the searchbar, which brings up the default keyboard would cause it to jump so high in memory.
Any Ideas? Anyone hear about issues with UISearchBar?
Thanks
Mark