adding search bar under the navigation bar?

i want to add a search bar under the navigation bar with uitableview. and i want to search from the database? any idea how to do this

Answers


add the searchbar as the headerView for your table.

UISearchBar *temp = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 320, 45)];
temp.barStyle=UIBarStyleBlackTranslucent;
temp.showsCancelButton=YES;
temp.autocorrectionType=UITextAutocorrectionTypeNo;
temp.autocapitalizationType=UITextAutocapitalizationTypeNone;
temp.delegate=self;
self.tableView.tableHeaderView=temp;
[temp release];

Need Your Help

Error in string format

java string format

I have a method that prints out the total price as a double after calculating the charge and adding a fee to it.

Anyone know of a cool jquery evolving picture?

jquery image jquery-plugins user-interface

slightly strange request, but does anybody know of any cool jquery plugin that changes the design or shape of its picture, based on a number (i.e. like reputation points)?