Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-24-2009, 12:17 AM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 3
Exclamation SearchBar overlay ontop of UITableView

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)handleSearchForTermNSString *)searchTerm;
@end
RiverTiger is offline   Reply With Quote
Reply

Bookmarks

Tags
keyboard, searchbar, tabbarcontroller, uitableview, uiviewcontroller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 270
17 members and 253 guests
ADY, Alsahir, Dani77, Desert Diva, Duncan C, F_Bryant, Grinarn, HemiMG, Herbie, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,761
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:44 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0