2009-06-17 40 views

答えて

8

検索バーをテーブルのヘッダービューとして追加します。

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]; 
関連する問題