I'm trying to overlay a searchBar overlay on top of a UITableView, with an overlay view that provides a 'back' or done option to retract the keyboard. I was able to show the keyboard but not the overlay. I've attached my code for ideas to get this to work...
I'm also open to the idea of having the keyboard retract whenever the user clicks on the table as well if this will speed it up programmatically without using a NIB...but neither of these options work when the tableview is a VC inside a tabBar controller root view. Thanks! Looking forward to your input!
///from appdelegate.m initializing and loading tabBar controller///
IntroViewController *introViewController = [[IntroViewController alloc] init];
UINavigationController *introNavController = [[UINavigationController alloc] initWithRootViewController:introViewController];
[introViewController release];
// ThirdTableViewController *thirdTableController = [[ThirdTableViewController alloc] initWithStyle:UITableViewStylePlain];
// UINavigationController *thirdNavController = [[UINavigationController alloc] initWithRootViewController:thirdTableController];
// [thirdTableController release];
MyFavoritesListController *myFavoritesListController = [[MyFavoritesListController alloc] init];
UINavigationController *myFavoritesListNavController = [[UINavigationController alloc] initWithRootViewController:myFavoritesListControll er];
[myFavoritesListController release];
///from IntroViewVC declaring UIView and search////
@interface IntroViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate>
{
UIImageView *contentView;
IBOutlet UITableView *table;
IBOutlet UISearchBar *search;
NSDictionary *allNames;
NSMutableDictionary *names;
NSMutableArray *keys;
}
@property (nonatomic, retain) UITableView *table;
@property (nonatomic, retain) UISearchBar *search;
@property (nonatomic, retain) NSDictionary *allNames;
@property (nonatomic, retain) NSMutableDictionary *names;
@property (nonatomic, retain) NSMutableArray *keys;
- (void)resetSearch;
- (void)handleSearchForTerm

NSString *)searchTerm;
@end