2009-06-17 9 views

Antwort

8

fügen Sie die Suchleiste als HeaderView für Ihre Tabelle.

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]; 
Verwandte Themen