プロジェクトに検索バーを実装しようとしています。
SearchBarアウトレットを作成し、デリゲートを設定しましたが、キーボードボタンを押すと、このボタンの値がに表示されません。UISearchBar
誰か教えてもらえますか?
- (void)searchBarSearchButtonClicked:(UISearchBar *)aSearchBar {
// When the search button is tapped, add the search term to recents and conduct the search.
NSString *searchString = [aSearchBar text];
NSLog(searchString);
}