2010-06-23 68 views

回答

2

有當搜索按鈕被按下

- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar 

{ 

     //CALL YOUR IBACTION METHOD HERE 
} 

-Happy編碼其燒成一個委託方法

0
(BOOL)textFieldShouldReturn:(UITextField *)textField{ 
    [self yourButtonName:nil]; 
}